Ejemplo n.º 1
0
 public override void SetupMisc(PropertyList list)
 {
     propertyListItem itm = new propertyListItem("I", propertyType.hex, "0");
     itm.maxValue = 6000;
     list.AddItem(itm);
     list.RefreshList();
 }
Ejemplo n.º 2
0
        public virtual propertyListItem AddItem(propertyListItem itm)
        {
            Control ctrl;
            Label lbl;
            if(itm != null && !_items.Contains(itm)) {
                ctrl = itm.control;
                lbl = itm.label;
                if(ctrl != null) {
                    _items.Add(itm);
                    lbl.Visible = false;
                    splitContainer_main.Panel1.Controls.Add(lbl);
                    lbl.Location = new Point(60000, 60000);
                    lbl.Visible = true;
                    ctrl.Visible = false;
                    splitContainer_main.Panel2.Controls.Add(ctrl);
                    ctrl.Location = new Point(60000, 60000);
                    ctrl.Visible = true;
                    ctrl.Anchor = AnchorStyles.Left & AnchorStyles.Right
                                    & AnchorStyles.Top;
                    //lbl.AutoSize = true;
                    if(!setupMode) RefreshList();
                }
                else Msg.Dbg("ctrl == null");
            }

            return itm;
        }