Exemple #1
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::BigMountainX.LandingPage obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_Feature(obj.Feature, phase);
             this.Update_NextEventAttendanceCount(obj.NextEventAttendanceCount, phase);
         }
     }
 }
Exemple #2
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    LandingPage_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::BigMountainX.LandingPage obj = sender as global::BigMountainX.LandingPage;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_Feature(obj.Feature, DATA_CHANGED);
                                bindings.Update_NextEventAttendanceCount(obj.NextEventAttendanceCount, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Feature":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Feature(obj.Feature, DATA_CHANGED);
                                }
                                break;
                            }

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

                            default:
                                break;
                            }
                        }
                    }
                    else
                    {
                        ReleaseAllListeners();
                    }
                }
Exemple #3
0
                public void UpdateChildListeners_(global::BigMountainX.LandingPage obj)
                {
                    LandingPage_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_;
                        }
                    }
                }
Exemple #4
0
            // LandingPage_obj1_Bindings

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