public KNXHVAC ToKnx(BackgroundWorker worker) { var knx = new KNXHVAC(); base.ToKnx(knx, worker); return(knx); }
public KNXHVAC ExportTo(BackgroundWorker worker, string dir, Point RelPoint) { KNXHVAC knx = this.ToKnx(worker); knx.Left = this.LocationInPageFact.X - RelPoint.X; knx.Top = this.LocationInPageFact.Y - RelPoint.Y; return(knx); }
/// <summary> /// 从模板中导入控件 /// </summary> /// <param name="knx"></param> /// <param name="worker"></param> /// <param name="DirSrcImg"></param> public HVACNode(KNXHVAC knx, BackgroundWorker worker, string DirSrcImg) : this(knx, worker) { this.Id = GenId(); // 创建新的Id }
/// <summary> /// 从工程文件中导入控件 /// </summary> /// <param name="knx"></param> public HVACNode(KNXHVAC knx, BackgroundWorker worker) : base(knx, worker) { this.Name = ImageKey = SelectedImageKey = MyConst.Controls.KnxHVACType; SetText(this.Title); }