Пример #1
0
 private async void BtnDelete_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         await viewModel.Delete(moviesList.SelectedItems);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Message", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Пример #2
0
 private void DeleteButt_Click(object sender, RoutedEventArgs e)
 {
     viewmodel.Delete();
 }