private void miInventory_Click(object sender, RoutedEventArgs e) { Views.InventoryWindow window = new Views.InventoryWindow(); this.CpCurrentScreenContent.Content = window.Content; ResetMenuButtons(); this.miInventory.Background = Brushes.LightSlateGray; this.LblContentTitle.Content = "Inventory Management"; }
private void Window_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == Key.I && (Keyboard.Modifiers == ModifierKeys.Control)) { Views.InventoryWindow window = new Views.InventoryWindow(); this.CpCurrentScreenContent.Content = window.Content; ResetMenuButtons(); this.miInventory.Background = Brushes.LightSlateGray; this.LblContentTitle.Content = "Inventory Management"; } }