private void FillWorks(List <WorksInfoDataModel> data)
 {
     if (data != null)
     {
         if (data.Count() > 0)
         {
             int            id    = data[0].idWork;
             WorksListModel model = Works.Where(p => p.Model.idWork == id).FirstOrDefault();
             if (model != null)
             {
                 data.ForEach(x => x.NHD = x.NH / 10.0m);
                 model.WorksInfo         = data;
             }
         }
     }
 }
 private void TrLoad()
 {
     for (int i = SelectedOrder.Works.Count() - 1; i >= 0; i--)
     {
         WorksInfoDataModel item  = SelectedOrder.Works[i];
         WorksListModel     model = Works.Where(p => p.Model.id == item.id).FirstOrDefault();
         if (model != null)
         {
             if (model.WorksInfo.Count() < 1)
             {
                 SpecificationDataStorage.Instance.GetWorkParts(item.idWork, SelectedOrder.CarNumber);
             }
         }
         Thread.Sleep(50);
     }
 }