using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Input; namespace LR1.Commands { internal class DataCommands { public static RoutedCommand Delete { get; set; } public static RoutedCommand Edit { get; set; } public static RoutedCommand Add { get; set; } public static RoutedCommand Save { get; set; } public static RoutedCommand Find { get; set; } static DataCommands() { InputGestureCollection inputs = new InputGestureCollection(); inputs.Add(new KeyGesture(Key.E, ModifierKeys.Control, "Ctrl+E")); Edit = new RoutedCommand("Edit", typeof(DataCommands), inputs); inputs = new InputGestureCollection(); inputs.Add(new KeyGesture(Key.D, ModifierKeys.Control, "Ctrl+D")); Delete = new RoutedCommand("Delete", typeof(DataCommands), inputs); inputs = new InputGestureCollection(); inputs.Add(new KeyGesture(Key.N, ModifierKeys.Control, "Ctrl+N")); Add = new RoutedCommand("Add", typeof(DataCommands), inputs); inputs = new InputGestureCollection(); inputs.Add(new KeyGesture(Key.S, ModifierKeys.Control, "Ctrl+S")); Save = new RoutedCommand("Save", typeof(DataCommands), inputs); inputs = new InputGestureCollection(); inputs.Add(new KeyGesture(Key.F, ModifierKeys.Control, "Ctrl+F")); Find = new RoutedCommand("Find", typeof(DataCommands), inputs); inputs = new InputGestureCollection(); } } }