private void Button_Click(object sender, RoutedEventArgs e)
        {
            Window win2 = new View_Shifts1(service);

            win2.Show();
            Close();
        }
Esempio n. 2
0
 private void Delete_Click(object sender, RoutedEventArgs e)
 {
     if (VM.SelectedShift is null)
     {
         MessageBox.Show("Choose A Shift");
     }
     else
     {
         DB_connector.DeleteShift(VM.SelectedShift.shift_id);
         //remember to delete all deals also
         Window w2 = new View_Shifts1(service);
         w2.Show();
         this.Close();
     }
 }