Пример #1
0
        protected virtual void OnShowCheckBoxChanged()
        {
            UpdateInputFieldAlignment();

            LockUpdateCheckBox checkBox = LockUpdateCheckBox;
            if (checkBox != null)
            {
                _InputGroup.Items.Remove(checkBox);
                checkBox.CheckedChanged -= new EventHandler(LockCheckedChanged);
            }

            if (this.ShowCheckBox)
            {
                if (!(_InputGroup.Items[0] is LockUpdateCheckBox))
                {
                    checkBox = new LockUpdateCheckBox();
                    checkBox.ItemType = eSystemItemType.SystemButton;
                    checkBox.CheckedChanged += new EventHandler(LockCheckedChanged);
                    _InputGroup.Items.Insert(0, checkBox);
                    checkBox.Checked = _LockUpdateChecked;
                }
            }
        }
Пример #2
0
        protected virtual void OnShowCheckBoxChanged()
        {
            LockUpdateCheckBox checkBox = LockUpdateCheckBox;
            if (checkBox != null)
            {
                _IpGroup.Items.Remove(checkBox);
                checkBox.CheckedChanged -= new EventHandler(LockCheckedChanged);
            }

            if (this.ShowCheckBox)
            {
                if (!(_IpGroup.Items[0] is LockUpdateCheckBox))
                {
                    checkBox = new LockUpdateCheckBox();
                    checkBox.CheckedChanged += new EventHandler(LockCheckedChanged);
                    _IpGroup.Items.Insert(0, checkBox);
                    checkBox.Checked = _LockUpdateChecked;
                }
            }
        }