| | |
| | | } |
| | | |
| | | HandleGoData(dataSet); |
| | | |
| | | dataSet.Dispose(); |
| | | } |
| | | |
| | | private void HandleGoData(GoDataSet dataSet, GoImageSet imgSet = null) |
| | |
| | | // } |
| | | // break; |
| | | } |
| | | |
| | | dataObj.Dispose(); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | HandleGoData(dataSet, imgSet); |
| | | |
| | | dataSet.Dispose(); |
| | | |
| | | if (imgSet.HImage == null) |
| | | { |
| | | LogAsync(DateTime.Now, $"{Name}未能获取HImage图像", ""); |
| | |
| | | _snapHandle.Set(); |
| | | } |
| | | } |
| | | |
| | | dataSet.Dispose(); |
| | | } |
| | | |
| | | #region 重写图片保存操作 |
| | |
| | | OnImageUpdated?.Invoke(this, showImage, imgSetId); |
| | | }); |
| | | |
| | | GoImageSet set = _imageSetList.FirstOrDefault(u => u.Id == imgSetId) as GoImageSet; |
| | | GoImageSet set = _imageSetList[imgSetId] as GoImageSet; |
| | | |
| | | if (set == null) |
| | | return; |
| | |
| | | { |
| | | await Task.Run(() => |
| | | { |
| | | GoImageSet set = _imageSetList.FirstOrDefault(u => u.Id == imgSetId) as GoImageSet; |
| | | GoImageSet set = _imageSetList[imgSetId] as GoImageSet; |
| | | if (set == null) |
| | | return; |
| | | |
| | |
| | | } |
| | | }); |
| | | } |
| | | |
| | | public override void ClearImageSet(IImageSet set) |
| | | { |
| | | if (set.IsOriginSaved && set.IsFitSaved && set.IsAddtionalSaved) |
| | | { |
| | | (set as GoImageSet).HImage_2?.Dispose(); |
| | | (set as GoImageSet).HImage_2 = null; |
| | | } |
| | | |
| | | base.ClearImageSet(set); |
| | | } |
| | | #endregion |
| | | } |
| | | |
| | | public class GoImageSet : ImageSet |
| | | { |
| | | public HImage HImage_2 { get; set; } |
| | | |
| | | public override void Dispose() |
| | | { |
| | | base.Dispose(); |
| | | |
| | | HImage_2?.Dispose(); |
| | | HImage_2 = null; |
| | | } |
| | | } |
| | | } |