public void PropertyChanged_ViewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { MainPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::App07_08_09_ToDo.ViewModels.MainPageViewModel obj = sender as global::App07_08_09_ToDo.ViewModels.MainPageViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_ViewModel_People(obj.People, DATA_CHANGED); } } else { switch (propName) { case "People": { if (obj != null) { bindings.Update_ViewModel_People(obj.People, DATA_CHANGED); } break; } default: break; } } } }
private void Update_ViewModel(global::App07_08_09_ToDo.ViewModels.MainPageViewModel obj, int phase) { this.bindingsTracking.UpdateChildListeners_ViewModel(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_ViewModel_People(obj.People, phase); } } }
public void UpdateChildListeners_ViewModel(global::App07_08_09_ToDo.ViewModels.MainPageViewModel obj) { if (obj != cache_ViewModel) { if (cache_ViewModel != null) { ((global::System.ComponentModel.INotifyPropertyChanged)cache_ViewModel).PropertyChanged -= PropertyChanged_ViewModel; cache_ViewModel = null; } if (obj != null) { cache_ViewModel = obj; ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_ViewModel; } } }