Esempio n. 1
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MainPage_obj4_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::Macierze_v2.MatrixElement obj = sender as global::Macierze_v2.MatrixElement;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_L(obj.L, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "L":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_L(obj.L, DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                        bindings.CompleteUpdate(DATA_CHANGED);
                    }
                }
Esempio n. 2
0
 public bool SetDataRoot(global::System.Object newDataRoot)
 {
     this.bindingsTracking.ReleaseAllListeners();
     if (newDataRoot != null)
     {
         this.dataRoot = (global::Macierze_v2.MatrixElement)newDataRoot;
         return(true);
     }
     return(false);
 }
Esempio n. 3
0
                public void UpdateChildListeners_(global::Macierze_v2.MatrixElement obj)
                {
                    MainPage_obj4_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        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_;
                        }
                    }
                }
Esempio n. 4
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::Macierze_v2.MatrixElement obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_L(obj.L, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_S(obj.S, phase);
             this.Update_Det(obj.Det, phase);
             this.Update_M(obj.M, phase);
         }
     }
     this.CompleteUpdate(phase);
 }