Ejemplo n.º 1
0
 private void HotcornerComandValueChangedHandler(AbstractCommand cmd)
 {
     var selectedRadioBtn = (from btn in _hotCornerRadioBtns where btn.Checked select btn).Single();
     selectedRadioBtn.Text = cmd.Description();
 }
Ejemplo n.º 2
0
        private void CommandValueChangedHandler(AbstractCommand command)
        {
#if DEBUG
            Console.WriteLine("CommandValueChanged");
#endif
            var item = listGestureIntents.SelectedItems[0];
            item.SubItems[2].Text = command.Description();
        }
Ejemplo n.º 3
0
        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;
        }