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

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

            command.AddBinding(newBinding);
        }