public void PropertyChanged_VM(object sender, global::System.ComponentModel.PropertyChangedEventArgs e) { MedicinesPage_obj1_Bindings bindings; if (WeakRefToBindingObj.TryGetTarget(out bindings)) { string propName = e.PropertyName; global::TPT_MMAS.ViewModel.MedicinesViewModel obj = sender as global::TPT_MMAS.ViewModel.MedicinesViewModel; if (global::System.String.IsNullOrEmpty(propName)) { if (obj != null) { bindings.Update_VM_MedicineInventories(obj.MedicineInventories, DATA_CHANGED); } } else { switch (propName) { case "MedicineInventories": { if (obj != null) { bindings.Update_VM_MedicineInventories(obj.MedicineInventories, DATA_CHANGED); } break; } default: break; } } } }
private void Update_VM(global::TPT_MMAS.ViewModel.MedicinesViewModel obj, int phase) { this.bindingsTracking.UpdateChildListeners_VM(obj); if (obj != null) { if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0) { this.Update_VM_MedicineInventories(obj.MedicineInventories, phase); } } }
public void UpdateChildListeners_VM(global::TPT_MMAS.ViewModel.MedicinesViewModel obj) { if (obj != cache_VM) { if (cache_VM != null) { ((global::System.ComponentModel.INotifyPropertyChanged)cache_VM).PropertyChanged -= PropertyChanged_VM; cache_VM = null; } if (obj != null) { cache_VM = obj; ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_VM; } } }