public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { SalonDetailEdit_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::Thibetanus.Views.SubPage.Salon.SalonDetailEdit obj = sender as global::Thibetanus.Views.SubPage.Salon.SalonDetailEdit; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_Serivces(obj.Serivces, DATA_CHANGED); } } else { switch (propName) { case "Serivces": { if (obj != null) { bindings.Update_Serivces(obj.Serivces, DATA_CHANGED); } break; } default: break; } } } }
public bool SetDataRoot(global::System.Object newDataRoot) { this.bindingsTracking.ReleaseAllListeners(); if (newDataRoot != null) { this.dataRoot = (global::Thibetanus.Views.SubPage.Salon.SalonDetailEdit)newDataRoot; return(true); } return(false); }
public void UpdateChildListeners_(global::Thibetanus.Views.SubPage.Salon.SalonDetailEdit obj) { SalonDetailEdit_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_; } } }
// Update methods for each path node used in binding steps. private void Update_(global::Thibetanus.Views.SubPage.Salon.SalonDetailEdit obj, int phase) { this.bindingsTracking.UpdateChildListeners_(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_Serivces(obj.Serivces, phase); } if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_Code(obj.Code, phase); this.Update_SalonName(obj.SalonName, phase); this.Update_Location(obj.Location, phase); this.Update_Manager(obj.Manager, phase); } } }