public void PropertyChanged_Main(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { MainPage_obj1_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { string propName = e.PropertyName; global::ReMusic.ViewModel.MainViewModel obj = sender as global::ReMusic.ViewModel.MainViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_Main_MenuList(obj.MenuList, DATA_CHANGED); } } else { switch (propName) { case "MenuList": { if (obj != null) { bindings.Update_Main_MenuList(obj.MenuList, DATA_CHANGED); } break; } default: break; } } } }
private void Update_Main(global::ReMusic.ViewModel.MainViewModel obj, int phase) { this.bindingsTracking.UpdateChildListeners_Main(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_Main_MenuList(obj.MenuList, phase); } } }
public void UpdateChildListeners_Main(global::ReMusic.ViewModel.MainViewModel obj) { if (obj != cache_Main) { if (cache_Main != null) { ((global::System.ComponentModel.INotifyPropertyChanged)cache_Main).PropertyChanged -= PropertyChanged_Main; cache_Main = null; } if (obj != null) { cache_Main = obj; ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_Main; } } }