Esempio n. 1
0
 private void DeleteButton_Click(object sender, RoutedEventArgs e)
 {
     if (maintenenceId != 0)
     {
         MaintenanceDBContext.IntitalizeDB();
         MaintenanceDBContext.Delete(maintenenceId);
         InitializeDataGrid();
         ClearAll();
         WindowSuccess success = new WindowSuccess();
         success.SetContent("Maintenance Deleted Succefully");
         success.Show();
     }
     else
     {
         WindowError error = new WindowError();
         error.SetContent("Maintenance Is Not Selected");
         error.Show();
     }
 }