public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { MainPage_obj2_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::PhotoLab.ImageFileInfo obj = sender as global::PhotoLab.ImageFileInfo; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_ImageTitle(obj.ImageTitle, DATA_CHANGED); } } else { switch (propName) { case "ImageTitle": { if (obj != null) { bindings.Update_ImageTitle(obj.ImageTitle, DATA_CHANGED); } break; } default: break; } } } }
public bool SetDataRoot(global::System.Object newDataRoot) { this.bindingsTracking.ReleaseAllListeners(); if (newDataRoot != null) { this.dataRoot = (global::PhotoLab.ImageFileInfo)newDataRoot; return(true); } return(false); }
public void UpdateChildListeners_item(global::PhotoLab.ImageFileInfo obj) { if (obj != cache_item) { if (cache_item != null) { ((global::System.ComponentModel.INotifyPropertyChanged)cache_item).PropertyChanged -= PropertyChanged_item; cache_item = null; } if (obj != null) { cache_item = obj; ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_item; } } }
// Update methods for each path node used in binding steps. private void Update_(global::PhotoLab.ImageFileInfo obj, int phase) { this.bindingsTracking.UpdateChildListeners_(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_ImageTitle(obj.ImageTitle, phase); } if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_ImageFileType(obj.ImageFileType, phase); this.Update_ImageDimensions(obj.ImageDimensions, phase); } } }
public void UpdateChildListeners_(global::PhotoLab.ImageFileInfo obj) { MainPage_obj7_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_; } } }
private void Update_item(global::PhotoLab.ImageFileInfo obj, int phase) { this.bindingsTracking.UpdateChildListeners_item(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_item_ImageTitle(obj.ImageTitle, phase); this.Update_item_ImageRating(obj.ImageRating, phase); this.Update_item_Exposure(obj.Exposure, phase); this.Update_item_Temperature(obj.Temperature, phase); this.Update_item_Tint(obj.Tint, phase); this.Update_item_Contrast(obj.Contrast, phase); this.Update_item_Saturation(obj.Saturation, phase); this.Update_item_Blur(obj.Blur, phase); this.Update_item_NeedsSaved(obj.NeedsSaved, phase); } } }
public void PropertyChanged_item(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { DetailPage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::PhotoLab.ImageFileInfo obj = sender as global::PhotoLab.ImageFileInfo; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_item_ImageTitle(obj.ImageTitle, DATA_CHANGED); bindings.Update_item_ImageRating(obj.ImageRating, DATA_CHANGED); bindings.Update_item_Exposure(obj.Exposure, DATA_CHANGED); bindings.Update_item_Temperature(obj.Temperature, DATA_CHANGED); bindings.Update_item_Tint(obj.Tint, DATA_CHANGED); bindings.Update_item_Contrast(obj.Contrast, DATA_CHANGED); bindings.Update_item_Saturation(obj.Saturation, DATA_CHANGED); bindings.Update_item_Blur(obj.Blur, DATA_CHANGED); bindings.Update_item_NeedsSaved(obj.NeedsSaved, DATA_CHANGED); } } else { switch (propName) { case "ImageTitle": { if (obj != null) { bindings.Update_item_ImageTitle(obj.ImageTitle, DATA_CHANGED); } break; } case "ImageRating": { if (obj != null) { bindings.Update_item_ImageRating(obj.ImageRating, DATA_CHANGED); } break; } case "Exposure": { if (obj != null) { bindings.Update_item_Exposure(obj.Exposure, DATA_CHANGED); } break; } case "Temperature": { if (obj != null) { bindings.Update_item_Temperature(obj.Temperature, DATA_CHANGED); } break; } case "Tint": { if (obj != null) { bindings.Update_item_Tint(obj.Tint, DATA_CHANGED); } break; } case "Contrast": { if (obj != null) { bindings.Update_item_Contrast(obj.Contrast, DATA_CHANGED); } break; } case "Saturation": { if (obj != null) { bindings.Update_item_Saturation(obj.Saturation, DATA_CHANGED); } break; } case "Blur": { if (obj != null) { bindings.Update_item_Blur(obj.Blur, DATA_CHANGED); } break; } case "NeedsSaved": { if (obj != null) { bindings.Update_item_NeedsSaved(obj.NeedsSaved, DATA_CHANGED); } break; } default: break; } } bindings.CompleteUpdate(DATA_CHANGED); } }