Exemplo n.º 1
0
        public static void BindTo(this BindableCommand command, Control control)
        {
            var newBinding = new ControlCommandBinding(command, control);

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

            command.AddBinding(newBinding);
        }