public void RemoveWithOutDate(object obj)
 {
     if (obj is Measurement mes)
     {
         MeasurementsWithoutDate.Remove(mes);
         Measurement.AllMeasurements.Remove(mes);
         StayLimits = GetCountStayLimits();
     }
 }
 public void SetDate(bool showMessage = true)
 {
     if (SelectedDate != null && SelectedMeasureWithoutDate != null)
     {
         if (SelectedMeasureWithoutDate.SetDateForMeasurement(SelectedDate, showMessage))
         {
             MeasurementsWithDate.Add(SelectedMeasureWithoutDate);
             MeasurementsWithoutDate.Remove(SelectedMeasureWithoutDate);
             StayLimits = GetCountStayLimits();
         }
     }
     else
     {
         if (showMessage)
         {
             MessageBox.Show("Для установки даты замера нужно выбрать дату и заявку на замер.");
         }
     }
 }