Example #1
0
        private void Cars_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            var x = e.Action;

            if (x == NotifyCollectionChangedAction.Add)
            {
                var Description = (e.NewItems[0] as Car).Description;
                CurrentModel.AddCar(Description);
            }
            //כאן עדכן את המודל בשינויים שנעשו בוויו
        }
Example #2
0
 private void AddCar_CadAdded(string Description)
 {
     CurrentModel.AddCar(Description);
 }