コード例 #1
0
 private void DeleteButton_Click(object sender, RoutedEventArgs e)
 {
     if (database.SelectedValue != null)
     {
         var item             = int.Parse(database.SelectedValue.ToString());
         var deleteDictionary = new DeleteDictionaryWindow(item);
         deleteDictionary.Show();
         deleteDictionary.deleteDictionary += Refresh;
     }
 }
コード例 #2
0
 private void DeleteDictionary_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var deleteDictionaryWindow = new DeleteDictionaryWindow(_dal, userId);
         deleteDictionaryWindow.Show();
     }
     catch (Exception ex)
     {
         Helper.log.Error(ex.ToString());
         MaterialMessageBox.ShowError(ex.ToString());
     }
 }