示例#1
0
        private void WorkTypesFind(string _find_work_type_text)
        {
            TypeTaskWithCarsM temp = SelectedWorkType;

            FindWorkTypes    = new ObservableCollection <TypeTaskWithCarsM>(_work_types.Where(w => w.Name.ToUpper().Contains(_find_work_type_text.ToUpper())).OrderByDescending(w => w.Selected));
            SelectedWorkType = temp;
            OnPropertyChanged("CountWorkTypes");
        }
示例#2
0
 private void LoadWorkTypes()
 {
     _work_types.Clear();
     foreach (var item in MainPluginClass.TypeTasks)
     {
         TypeTaskWithCarsM temp = new TypeTaskWithCarsM((int)item.Id, item.Name);
         foreach (var car in _cars)
         {
             CarM temp_car = new CarM(car.Id, car.GosNomer, car.GarNomer, car.ExternalId);
             temp.Cars.Add(temp_car);
         }
         temp.AddHandlerCar();
         _work_types.Add(temp);
     }
     WorkTypesFind("");
 }