private void Update_VM(global::szd1.ViewModel obj, int phase) { this.bindingsTracking.UpdateChildListeners_VM(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_VM_IsInMenu(obj.IsInMenu, phase); this.Update_VM_IsInFillomino(obj.IsInFillomino, phase); this.Update_VM_IsItTheEnd(obj.IsItTheEnd, phase); this.Update_VM_StickyArray(obj.StickyArray, phase); this.Update_VM_IsInSticky(obj.IsInSticky, phase); } } }
public void UpdateChildListeners_VM(global::szd1.ViewModel obj) { if (obj != cache_VM) { if (cache_VM != null) { ((global::System.ComponentModel.INotifyPropertyChanged)cache_VM).PropertyChanged -= PropertyChanged_VM; cache_VM = null; } if (obj != null) { cache_VM = obj; ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_VM; } } }
public void PropertyChanged_VM(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { MainPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::szd1.ViewModel obj = sender as global::szd1.ViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_VM_IsInMenu(obj.IsInMenu, DATA_CHANGED); bindings.Update_VM_IsInFillomino(obj.IsInFillomino, DATA_CHANGED); bindings.Update_VM_IsItTheEnd(obj.IsItTheEnd, DATA_CHANGED); bindings.Update_VM_StickyArray(obj.StickyArray, DATA_CHANGED); bindings.Update_VM_IsInSticky(obj.IsInSticky, DATA_CHANGED); } } else { switch (propName) { case "IsInMenu": { if (obj != null) { bindings.Update_VM_IsInMenu(obj.IsInMenu, DATA_CHANGED); } break; } case "IsInFillomino": { if (obj != null) { bindings.Update_VM_IsInFillomino(obj.IsInFillomino, DATA_CHANGED); } break; } case "IsItTheEnd": { if (obj != null) { bindings.Update_VM_IsItTheEnd(obj.IsItTheEnd, DATA_CHANGED); } break; } case "StickyArray": { if (obj != null) { bindings.Update_VM_StickyArray(obj.StickyArray, DATA_CHANGED); } break; } case "IsInSticky": { if (obj != null) { bindings.Update_VM_IsInSticky(obj.IsInSticky, DATA_CHANGED); } break; } default: break; } } } }