private void tableValuesHaveChanged() { DelegateOfTheBox oSwitchBox = new DelegateOfTheBox(); DelegateOfTheBox.BoxDelegate oBoxDelegate = new DelegateOfTheBox.BoxDelegate(switchBox); oSwitchBox.switchBox += oBoxDelegate; oSwitchBox.changeContentsBox = BoxState; oSwitchBox.switchBox -= oBoxDelegate; }
private void boxStatusHasChanged() { DelegateOfTheBox oSwitchBox = new DelegateOfTheBox(); DelegateOfTheBox.BoxDelegate oBoxDelegate = new DelegateOfTheBox.BoxDelegate(switchBox); oSwitchBox.switchBox += oBoxDelegate; oSwitchBox.changeContentsBox = BoxStatus; oSwitchBox.switchBox -= oBoxDelegate; }