public override void UpdateDataSet(ReworksDataSet ds) { ReworksDataSet.RepairZoneRow r = ds.RepairZone.FindByRepZoneId(id); r.RepZonePosX1 = xPos; r.RepZonePosY1 = yPos; r.RepZonePosX2 = xPos + size.Width; r.RepZonePosY2 = yPos + size.Height; }
public RepZoneGlyph(ReworksDataSet.RepairZoneRow r) { this.id = r.RepZoneId; this.name = r.RepZoneName; this.children = null; this.status = GlyphStatus.On; this.type = GlyphType.RepZone; this.xPos = (int)r.RepZonePosX1; this.yPos = (int)r.RepZonePosY1; this.size.Width = (int)(r.RepZonePosX2 - r.RepZonePosX1); this.size.Height = (int)(r.RepZonePosY2 - r.RepZonePosY1); this.bmp = null; }