private void tableValuesHaveChanged()
        {
            DelegateOfTheBox oSwitchBox = new DelegateOfTheBox();

            DelegateOfTheBox.BoxDelegate oBoxDelegate = new DelegateOfTheBox.BoxDelegate(switchBox);
            oSwitchBox.switchBox        += oBoxDelegate;
            oSwitchBox.changeContentsBox = BoxState;

            oSwitchBox.switchBox -= oBoxDelegate;
        }
示例#2
0
        private void boxStatusHasChanged()
        {
            DelegateOfTheBox oSwitchBox = new DelegateOfTheBox();

            DelegateOfTheBox.BoxDelegate oBoxDelegate = new DelegateOfTheBox.BoxDelegate(switchBox);
            oSwitchBox.switchBox        += oBoxDelegate;
            oSwitchBox.changeContentsBox = BoxStatus;

            oSwitchBox.switchBox -= oBoxDelegate;
        }