private void AddShiftButton_Click(object sender, RoutedEventArgs e)
        {
            EditShiftWindow editShiftWindow = new EditShiftWindow(IsCoating);

            editShiftWindow.ShowDialog();
            if (editShiftWindow.Accepted)
            {
                if (ShiftCalendar != null)
                {
                    ShiftCalendar.Refresh();
                }
            }
        }
 private void EditShiftButton_Click(object sender, RoutedEventArgs e)
 {
     if (ShiftListView.SelectedIndex >= 0)
     {
         var             shift           = ShiftListView.SelectedItem as Shift;
         EditShiftWindow editShiftWindow = new EditShiftWindow(IsCoating, shift);
         editShiftWindow.ShowDialog();
         if (editShiftWindow.Accepted == true)
         {
             if (ShiftCalendar != null)
             {
                 ShiftCalendar.Refresh();
             }
         }
     }
 }