Exemplo n.º 1
0
                public void UpdateChildListeners_(global::TPT_MMAS.Shell obj)
                {
                    Shell_obj1_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.º 2
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::TPT_MMAS.Shell obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_CurrentUser(obj.CurrentUser, phase);
         }
     }
     else
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.UpdateFallback_CurrentUser(phase);
         }
     }
 }
Exemplo n.º 3
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    Shell_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName            = e.PropertyName;
                        global::TPT_MMAS.Shell obj = sender as global::TPT_MMAS.Shell;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_CurrentUser(obj.CurrentUser, DATA_CHANGED);
                            }
                            else
                            {
                                bindings.UpdateFallback_CurrentUser(DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "CurrentUser":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_CurrentUser(obj.CurrentUser, DATA_CHANGED);
                                }
                                else
                                {
                                    bindings.UpdateFallback_CurrentUser(DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                    }
                }
Exemplo n.º 4
0
            // Shell_obj1_Bindings

            public void SetDataRoot(global::TPT_MMAS.Shell newDataRoot)
            {
                this.bindingsTracking.ReleaseAllListeners();
                this.dataRoot = newDataRoot;
            }