Example #1
0
        public KNXHVAC ToKnx(BackgroundWorker worker)
        {
            var knx = new KNXHVAC();

            base.ToKnx(knx, worker);

            return(knx);
        }
Example #2
0
        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);
        }
Example #3
0
 /// <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
 }
Example #4
0
 /// <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);
 }