public bool SetDataRoot(global::System.Object newDataRoot) { if (newDataRoot != null) { this.dataRoot = (global::RedisExplorerUWP.MainPage)newDataRoot; return(true); } return(false); }
// Update methods for each path node used in binding steps. private void Update_(global::RedisExplorerUWP.MainPage obj, int phase) { if (obj != null) { if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_selectedTicket(obj.selectedTicket, phase); } } }
public bool SetDataRoot(global::System.Object newDataRoot) { this.bindingsTracking.ReleaseAllListeners(); if (newDataRoot != null) { this.dataRoot = (global::RedisExplorerUWP.MainPage)newDataRoot; return(true); } return(false); }
// Update methods for each path node used in binding steps. private void Update_(global::RedisExplorerUWP.MainPage obj, int phase) { this.bindingsTracking.UpdateChildListeners_(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_currentNick(obj.currentNick, phase); this.Update_currentConnectionString(obj.currentConnectionString, phase); this.Update_itemList(obj.itemList, phase); this.Update_selectedItem(obj.selectedItem, phase); } } }
public void UpdateChildListeners_(global::RedisExplorerUWP.MainPage obj) { MainPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { if (bindings.dataRoot != null) { ((global::System.ComponentModel.INotifyPropertyChanged)bindings.dataRoot).PropertyChanged -= PropertyChanged_; } if (obj != null) { bindings.dataRoot = obj; ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_; } } }
public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { MainPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::RedisExplorerUWP.MainPage obj = sender as global::RedisExplorerUWP.MainPage; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_currentNick(obj.currentNick, DATA_CHANGED); bindings.Update_currentConnectionString(obj.currentConnectionString, DATA_CHANGED); bindings.Update_itemList(obj.itemList, DATA_CHANGED); bindings.Update_selectedItem(obj.selectedItem, DATA_CHANGED); } } else { switch (propName) { case "currentNick": { if (obj != null) { bindings.Update_currentNick(obj.currentNick, DATA_CHANGED); } break; } case "currentConnectionString": { if (obj != null) { bindings.Update_currentConnectionString(obj.currentConnectionString, DATA_CHANGED); } break; } case "itemList": { if (obj != null) { bindings.Update_itemList(obj.itemList, DATA_CHANGED); } break; } case "selectedItem": { if (obj != null) { bindings.Update_selectedItem(obj.selectedItem, DATA_CHANGED); } break; } default: break; } } } }