示例#1
0
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::TreatSelf.Models.Tratamiento data = args.NewValue as global::TreatSelf.Models.Tratamiento;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::TreatSelf.Models.Tratamiento was expected.");
     }
     this.SetDataRoot(data);
     this.Update();
 }
 // Update methods for each path node used in binding steps.
 private void Update_(global::TreatSelf.Models.Tratamiento obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_NomTratamiento(obj.NomTratamiento, phase);
             this.Update_Descripcion(obj.Descripcion, phase);
         }
     }
 }
示例#3
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::TreatSelf.Models.Tratamiento obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_NomTratamiento(obj.NomTratamiento, phase);
             this.Update_Descripcion(obj.Descripcion, phase);
         }
     }
 }
示例#4
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    AddPacTra_obj19_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::TreatSelf.Models.Tratamiento obj = sender as global::TreatSelf.Models.Tratamiento;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_NomTratamiento(obj.NomTratamiento, DATA_CHANGED);
                                bindings.Update_Descripcion(obj.Descripcion, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "NomTratamiento":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_NomTratamiento(obj.NomTratamiento, DATA_CHANGED);
                                }
                                break;
                            }

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

                            default:
                                break;
                            }
                        }
                    }
                    else
                    {
                        ReleaseAllListeners();
                    }
                }
示例#5
0
                public void UpdateChildListeners_(global::TreatSelf.Models.Tratamiento obj)
                {
                    AddPacTra_obj19_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        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_;
                        }
                    }
                }
            // Tratamientos_obj11_Bindings

            public void SetDataRoot(global::TreatSelf.Models.Tratamiento newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }
示例#7
0
            // AddPacTra_obj19_Bindings

            public void SetDataRoot(global::TreatSelf.Models.Tratamiento newDataRoot)
            {
                this.bindingsTracking.ReleaseAllListeners();
                this.dataRoot = newDataRoot;
            }
            // Tratamientos_obj11_Bindings

            public void SetDataRoot(global::TreatSelf.Models.Tratamiento newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }
            // AddPacTra_obj19_Bindings

            public void SetDataRoot(global::TreatSelf.Models.Tratamiento newDataRoot)
            {
                this.bindingsTracking.ReleaseAllListeners();
                this.dataRoot = newDataRoot;
            }