Пример #1
0
 private void InitializeCommands()
 {
     _commandBindings = new WindowsFormsCommandBindings();
     _commandBindings.AddCommand(clearButton, _logic.ClearCommand);
     _commandBindings.AddCommand(searchButton, _logic.SearchCommand);
     _commandBindings.AddCommand(newButton, _logic.AddNewCommand);
     _commandBindings.AddCommand(updateButton, _logic.UpdateCommand);
     _commandBindings.AddCommand(deleteButton, _logic.DeleteCommand);
     _commandBindings.AddCommand(deleteTodoMenuItem, _logic.AutoDeleteCommand);
     _commandBindings.AddCommand(importMenuItem, _logic.ImportCommand);
     _commandBindings.AddCommand(exportMenuItem, _logic.ExportCommand);
 }
Пример #2
0
 private void InitializeCommands()
 {
     _commandBindings = new WindowsFormsCommandBindings();
     _commandBindings.AddCommand(clearButton, _logic.ClearCommand);
     _commandBindings.AddCommand(searchButton, _logic.SearchCommand);
     _commandBindings.AddCommand(newButton, _logic.AddNewCommand);
     _commandBindings.AddCommand(updateButton, _logic.UpdateCommand);
     _commandBindings.AddCommand(deleteButton, _logic.DeleteCommand);
     _commandBindings.AddCommand(deleteTodoMenuItem, _logic.AutoDeleteCommand);
     _commandBindings.AddCommand(importMenuItem, _logic.ImportCommand);
     _commandBindings.AddCommand(exportMenuItem, _logic.ExportCommand);
 }