Beispiel #1
0
 private void Update__vm(global::TravelApp.ViewModels.TravelPlanDetailsViewModel.TaskFrameViewModel obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners__vm(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update__vm_SortedTaskList(obj.SortedTaskList, phase);
             this.Update__vm_SelectedItem(obj.SelectedItem, phase);
         }
     }
 }
Beispiel #2
0
 public void UpdateChildListeners__vm(global::TravelApp.ViewModels.TravelPlanDetailsViewModel.TaskFrameViewModel 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;
         }
     }
 }
Beispiel #3
0
 private void Update__vm(global::TravelApp.ViewModels.TravelPlanDetailsViewModel.TaskFrameViewModel obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners__vm(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update__vm_SortedTaskList(obj.SortedTaskList, phase);
             this.Update__vm_SelectedItem(obj.SelectedItem, phase);
             this.Update__vm_ShowNewTaskFields(obj.ShowNewTaskFields, phase);
             this.Update__vm_ButtonsEnabled(obj.ButtonsEnabled, phase);
             this.Update__vm_Message(obj.Message, phase);
             this.Update__vm_IsLoading(obj.IsLoading, phase);
         }
     }
 }
Beispiel #4
0
                public void PropertyChanged__vm(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    TaskFrame_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::TravelApp.ViewModels.TravelPlanDetailsViewModel.TaskFrameViewModel obj = sender as global::TravelApp.ViewModels.TravelPlanDetailsViewModel.TaskFrameViewModel;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update__vm_SortedTaskList(obj.SortedTaskList, DATA_CHANGED);
                                bindings.Update__vm_SelectedItem(obj.SelectedItem, DATA_CHANGED);
                                bindings.Update__vm_ShowNewTaskFields(obj.ShowNewTaskFields, DATA_CHANGED);
                                bindings.Update__vm_ButtonsEnabled(obj.ButtonsEnabled, DATA_CHANGED);
                                bindings.Update__vm_Message(obj.Message, DATA_CHANGED);
                                bindings.Update__vm_IsLoading(obj.IsLoading, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "SortedTaskList":
                            {
                                if (obj != null)
                                {
                                    bindings.Update__vm_SortedTaskList(obj.SortedTaskList, DATA_CHANGED);
                                }
                                break;
                            }

                            case "SelectedItem":
                            {
                                if (obj != null)
                                {
                                    bindings.Update__vm_SelectedItem(obj.SelectedItem, DATA_CHANGED);
                                }
                                break;
                            }

                            case "ShowNewTaskFields":
                            {
                                if (obj != null)
                                {
                                    bindings.Update__vm_ShowNewTaskFields(obj.ShowNewTaskFields, DATA_CHANGED);
                                }
                                break;
                            }

                            case "ButtonsEnabled":
                            {
                                if (obj != null)
                                {
                                    bindings.Update__vm_ButtonsEnabled(obj.ButtonsEnabled, DATA_CHANGED);
                                }
                                break;
                            }

                            case "Message":
                            {
                                if (obj != null)
                                {
                                    bindings.Update__vm_Message(obj.Message, DATA_CHANGED);
                                }
                                break;
                            }

                            case "IsLoading":
                            {
                                if (obj != null)
                                {
                                    bindings.Update__vm_IsLoading(obj.IsLoading, DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                    }
                }