Exemple #1
0
 private void RemoveButton_Click(object sender, RoutedEventArgs e)
 {
     if (listView.SelectedItem != null)
     {
         manager.DeleteList(listView.SelectedItem.ToString());
     }
 }
 private void DeleteButton_Click(object sender, RoutedEventArgs e)
 {
     if (listView.SelectedItem == null)
     {
         return;
     }
     if (MessageBox.Show(this, "Are you sure that you want to delete the selected assembly list?",
                         "ILSpy", MessageBoxButton.YesNo, MessageBoxImage.Warning, MessageBoxResult.No, MessageBoxOptions.None) != MessageBoxResult.Yes)
     {
         return;
     }
     manager.DeleteList(listView.SelectedItem.ToString());
 }