Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }