Exemple #1
0
        private void AddToList(object sender)
        {
            List <ViewCarWorkModel> periodic   = Works.Where(p => p.Selected == true).ToList();
            List <ViewCarWorkModel> unperiodic = NotPeriodicWorks.Where(p => p.Selected == true).ToList();

            OrderWorks.Clear();
            foreach (var item in periodic)
            {
                OrderWorks.Add(item);
                LoadWorkData(item);
            }
            foreach (var item in unperiodic)
            {
                OrderWorks.Add(item);
                LoadWorkData(item);
            }
        }
Exemple #2
0
 void Instance_CarsWorksUpdated(object sender, EventArgs e)
 {
     OrderWorks.Clear();
     FilterWorks();
 }