Exemple #1
0
        public static void BindTo(this BindableCommand command, Control control)
        {
            var newBinding = new ControlCommandBinding(command, control);

            command.AddBinding(newBinding);
        }
Exemple #2
0
        public static void BindTo(this BindableCommand command, ToolStripItem tsItem)
        {
            var newBinding = new ToolStripItemCommandBinding(command, tsItem);

            command.AddBinding(newBinding);
        }