Exemplo n.º 1
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    ClientPage_obj17_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::ptGym_Dal_BL.BL.Client obj = sender as global::ptGym_Dal_BL.BL.Client;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_Name(obj.Name, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Name":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Name(obj.Name, DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                    }
                }
Exemplo n.º 2
0
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::ptGym_Dal_BL.BL.Client data = args.NewValue as global::ptGym_Dal_BL.BL.Client;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::ptGym_Dal_BL.BL.Client was expected.");
     }
     this.SetDataRoot(data);
     this.Update();
 }
Exemplo n.º 3
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::ptGym_Dal_BL.BL.Client obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_CC(obj.CC, phase);
         }
     }
 }
Exemplo n.º 4
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::ptGym_Dal_BL.BL.Client obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_Name(obj.Name, phase);
         }
     }
 }
Exemplo n.º 5
0
 private void Update_ClientViewModel_Client(global::ptGym_Dal_BL.BL.Client obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_ClientViewModel_Client(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_ClientViewModel_Client_Name(obj.Name, phase);
             this.Update_ClientViewModel_Client_CC(obj.CC, phase);
             this.Update_ClientViewModel_Client_Phone(obj.Phone, phase);
             this.Update_ClientViewModel_Client_HomeAddress(obj.HomeAddress, phase);
             this.Update_ClientViewModel_Client_Locality(obj.Locality, phase);
         }
     }
 }
Exemplo n.º 6
0
 public void UpdateChildListeners_ClientViewModel_Client(global::ptGym_Dal_BL.BL.Client obj)
 {
     if (obj != cache_ClientViewModel_Client)
     {
         if (cache_ClientViewModel_Client != null)
         {
             ((global::System.ComponentModel.INotifyPropertyChanged)cache_ClientViewModel_Client).PropertyChanged -= PropertyChanged_ClientViewModel_Client;
             cache_ClientViewModel_Client = null;
         }
         if (obj != null)
         {
             cache_ClientViewModel_Client = obj;
             ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_ClientViewModel_Client;
         }
     }
 }
Exemplo n.º 7
0
                public void UpdateChildListeners_(global::ptGym_Dal_BL.BL.Client obj)
                {
                    ClientPage_obj17_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_;
                        }
                    }
                }
Exemplo n.º 8
0
            // ClientLocalidadeFunc_obj4_Bindings

            public void SetDataRoot(global::ptGym_Dal_BL.BL.Client newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }
Exemplo n.º 9
0
                public void PropertyChanged_ClientViewModel_Client(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    ClientContentDialog_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::ptGym_Dal_BL.BL.Client obj = sender as global::ptGym_Dal_BL.BL.Client;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_ClientViewModel_Client_Name(obj.Name, DATA_CHANGED);
                                bindings.Update_ClientViewModel_Client_CC(obj.CC, DATA_CHANGED);
                                bindings.Update_ClientViewModel_Client_Phone(obj.Phone, DATA_CHANGED);
                                bindings.Update_ClientViewModel_Client_HomeAddress(obj.HomeAddress, DATA_CHANGED);
                                bindings.Update_ClientViewModel_Client_Locality(obj.Locality, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Name":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_ClientViewModel_Client_Name(obj.Name, DATA_CHANGED);
                                }
                                break;
                            }

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

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

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

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

                            default:
                                break;
                            }
                        }
                    }
                }
Exemplo n.º 10
0
            // ClientPage_obj17_Bindings

            public void SetDataRoot(global::ptGym_Dal_BL.BL.Client newDataRoot)
            {
                this.bindingsTracking.ReleaseAllListeners();
                this.dataRoot = newDataRoot;
            }