public TurnButtonOnCommand(IOnOffButton button) { this.button = button; }
private void AddToDictionaryAndList(IOnOffButton button) { buttonsDictionary.Add(button.GetType(), button); Buttons.Add(button); }