public bool SetDataRoot(global::System.Object newDataRoot) { this.bindingsTracking.ReleaseAllListeners(); if (newDataRoot != null) { this.dataRoot = (global::Scouting_Application_2_complete.Views.StratPicPage)newDataRoot; return(true); } return(false); }
// Update methods for each path node used in binding steps. private void Update_(global::Scouting_Application_2_complete.Views.StratPicPage obj, int phase) { this.bindingsTracking.UpdateChildListeners_(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_SaveImageButtonIsEnabled(obj.SaveImageButtonIsEnabled, phase); this.Update_ClearAllButtonIsEnabled(obj.ClearAllButtonIsEnabled, phase); } } }
public void UpdateChildListeners_(global::Scouting_Application_2_complete.Views.StratPicPage obj) { StratPicPage_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) { StratPicPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::Scouting_Application_2_complete.Views.StratPicPage obj = sender as global::Scouting_Application_2_complete.Views.StratPicPage; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_SaveImageButtonIsEnabled(obj.SaveImageButtonIsEnabled, DATA_CHANGED); bindings.Update_ClearAllButtonIsEnabled(obj.ClearAllButtonIsEnabled, DATA_CHANGED); } } else { switch (propName) { case "SaveImageButtonIsEnabled": { if (obj != null) { bindings.Update_SaveImageButtonIsEnabled(obj.SaveImageButtonIsEnabled, DATA_CHANGED); } break; } case "ClearAllButtonIsEnabled": { if (obj != null) { bindings.Update_ClearAllButtonIsEnabled(obj.ClearAllButtonIsEnabled, DATA_CHANGED); } break; } default: break; } } } }