public void SaveMarkInfo(EMarkDataType markType) { MarkDataInfo markDataInfo = new MarkDataInfo(ProductName, BatchName, BoardName, SideName, ShotName, DefectName); _sqliteDb.ReadMarkDataType(ref markDataInfo); MarkRegionInfo markRegionInfo = new MarkRegionInfo(); markRegionInfo.SetByDefectCell(DefectCells[DisplayWindowIndex], DefectRegionIndex, markType); markDataInfo.AddMarks(DefectRegionIndex, markRegionInfo); _sqliteDb.WriteMarkDataInfo(markDataInfo); return; }
public MarkDataInfo(MarkDataInfo markDataInfo) { ProductName = markDataInfo.ProductName; BatchName = markDataInfo.BatchName; BoardName = markDataInfo.BoardName; SideName = markDataInfo.SideName; ShotName = markDataInfo.ShotName; DefectName = markDataInfo.DefectName; MarkRegionInfos = new Dictionary <int, MarkRegionInfo>(); foreach (var regionMarkType in markDataInfo.MarkRegionInfos) { AddMarks(regionMarkType.Key, regionMarkType.Value); } }