Ejemplo n.º 1
0
                public void PropertyChanged__vm(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    NavWrapperPage_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::TravelApp.ViewModels.NavWrapperViewModel obj = sender as global::TravelApp.ViewModels.NavWrapperViewModel;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update__vm_SelectedTravelPlan(obj.SelectedTravelPlan, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "SelectedTravelPlan":
                            {
                                if (obj != null)
                                {
                                    bindings.Update__vm_SelectedTravelPlan(obj.SelectedTravelPlan, DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                    }
                }
Ejemplo n.º 2
0
 private void Update__vm(global::TravelApp.ViewModels.NavWrapperViewModel obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners__vm(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update__vm_SelectedTravelPlan(obj.SelectedTravelPlan, phase);
         }
     }
 }
Ejemplo n.º 3
0
 public void UpdateChildListeners__vm(global::TravelApp.ViewModels.NavWrapperViewModel 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;
         }
     }
 }