public override void UpdateControlFromValue()
        {
            CheckBox cb = (CheckBox)control?.Controls[0];

            if (cb == null)
            {
                return;
            }
            cb.Checked = Value;
            SubParamsFalse?.UpdateControlsFromValue();
            SubParamsTrue?.UpdateControlsFromValue();
        }
Beispiel #2
0
        public override void UpdateControlFromValue()
        {
            if (control == null)
            {
                return;
            }
            TableLayoutPanel tlp = (TableLayoutPanel)control;
            CheckBox         cb  = (CheckBox)tlp.GetControlFromPosition(0, 0);

            if (cb == null)
            {
                return;
            }
            cb.Checked = Value;
            if (SubParamsFalse != null)
            {
                SubParamsFalse.UpdateControlsFromValue();
            }
            if (SubParamsTrue != null)
            {
                SubParamsTrue.UpdateControlsFromValue();
            }
        }