private void HotcornerComandValueChangedHandler(AbstractCommand cmd) { var selectedRadioBtn = (from btn in _hotCornerRadioBtns where btn.Checked select btn).Single(); selectedRadioBtn.Text = cmd.Description(); }
private void CommandValueChangedHandler(AbstractCommand command) { #if DEBUG Console.WriteLine("CommandValueChanged"); #endif var item = listGestureIntents.SelectedItems[0]; item.SubItems[2].Text = command.Description(); }
private void LoadHotCornerCmdView(AbstractCommand cmd) { var cmdView = Controller.HotCornerCommandViewFactory.GetCommandView(cmd); panel_cornorCmdView.Controls.Clear(); panel_cornorCmdView.Controls.Add(cmdView); cmdView.CommandValueChanged -= HotcornerComandValueChangedHandler; cmdView.CommandValueChanged += HotcornerComandValueChangedHandler; }