SetField() public method

public SetField ( string name ) : void
name string
return void
コード例 #1
0
        private void BUT_Add_Click(object sender, EventArgs e)
        {
            var newcw = new CheckListItem();

            CheckListItem.defaultsrc = MainV2.comPort.MAV.cs;
            newcw.SetField(newcw.GetOptions()[0]);

            lock (_parent.CheckListItems)
            {
                _parent.CheckListItems.Add(newcw);
            }

            reload();
        }
コード例 #2
0
        private void BUT_Add_Click(object sender, EventArgs e)
        {
            var newcw = new CheckListItem();

            CheckListItem.defaultsrc = MainV2.comPort.MAV.cs;
            newcw.SetField(newcw.GetOptions()[0]);

            lock (_parent.CheckListItems)
            {
                _parent.CheckListItems.Add(newcw);
            }

            reload();
        }
コード例 #3
0
        public CheckListInput(CheckListControl parent, CheckListItem item)
        {
            _parent = parent;

            InitializeComponent();

            CheckListItem.defaultsrc = MainV2.comPort.MAV.cs;
            item.SetField(item.Name);

            CMB_condition.DataSource = Enum.GetNames(typeof(CheckListItem.Conditional));

            CMB_Source.DataSource = item.GetOptions();

            CMB_colour1.DataSource = Enum.GetNames(typeof(KnownColor));
            CMB_colour2.DataSource = Enum.GetNames(typeof(KnownColor));

            CheckListItem = item;

            updateDisplay();
        }
コード例 #4
0
        public CheckListInput(CheckListControl parent, CheckListItem item)
        {
            _parent = parent;

            InitializeComponent();

            CheckListItem.defaultsrc = MainV2.comPort.MAV.cs;
            item.SetField(item.Name);

            CMB_condition.DataSource = Enum.GetNames(typeof(CheckListItem.Conditional));

            CMB_Source.DataSource = item.GetOptions();

            CMB_colour1.DataSource = Enum.GetNames(typeof(KnownColor));
            CMB_colour2.DataSource = Enum.GetNames(typeof(KnownColor));

            CheckListItem = item;

            updateDisplay();
        }