public void PropertyChanged_ViewModel(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { HomePage_obj1_Bindings bindings = TryGetBindingObject(); if (bindings != null) { string propName = e.PropertyName; global::FishNTrips.Uwp.ViewModels.HomeViewModel obj = sender as global::FishNTrips.Uwp.ViewModels.HomeViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_ViewModel_newPassword(obj.newPassword, DATA_CHANGED); bindings.Update_ViewModel_locationName(obj.locationName, DATA_CHANGED); bindings.Update_ViewModel_Locations(obj.Locations, DATA_CHANGED); } } else { switch (propName) { case "newPassword": { if (obj != null) { bindings.Update_ViewModel_newPassword(obj.newPassword, DATA_CHANGED); } break; } case "locationName": { if (obj != null) { bindings.Update_ViewModel_locationName(obj.locationName, DATA_CHANGED); } break; } case "Locations": { if (obj != null) { bindings.Update_ViewModel_Locations(obj.Locations, DATA_CHANGED); } break; } default: break; } } } }
public void UpdateChildListeners_ViewModel(global::FishNTrips.Uwp.ViewModels.HomeViewModel obj) { if (obj != cache_ViewModel) { if (cache_ViewModel != null) { ((global::System.ComponentModel.INotifyPropertyChanged)cache_ViewModel).PropertyChanged -= PropertyChanged_ViewModel; cache_ViewModel = null; } if (obj != null) { cache_ViewModel = obj; ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_ViewModel; } } }
private void Update_ViewModel(global::FishNTrips.Uwp.ViewModels.HomeViewModel obj, int phase) { this.bindingsTracking.UpdateChildListeners_ViewModel(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_ViewModel_newPassword(obj.newPassword, phase); this.Update_ViewModel_locationName(obj.locationName, phase); this.Update_ViewModel_Locations(obj.Locations, phase); } if ((phase & (NOT_PHASED | (1 << 0))) != 0) { this.Update_ViewModel_WelcomeText(obj.WelcomeText, phase); } } }