private void ListBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     if (e.Key == Key.Delete)
     {
         InfrastructureSettingViewModel viewModel = DataContext as InfrastructureSettingViewModel;
         if (viewModel != null)
         {
             viewModel.RemoveDirectoryCommand.Execute(null);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// Initialize an instance of OptionManager.
 /// </summary>
 public InfrastructureManager()
 {
     settingViewModel = new InfrastructureSettingViewModel();
 }