예제 #1
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MainPage_obj13_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::GamesDB.ViewModel.GameVM obj = sender as global::GamesDB.ViewModel.GameVM;
                        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;
                            }
                        }
                    }
                }
예제 #2
0
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::GamesDB.ViewModel.GameVM data = args.NewValue as global::GamesDB.ViewModel.GameVM;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::GamesDB.ViewModel.GameVM was expected.");
     }
     this.SetDataRoot(data);
     this.Update();
 }
예제 #3
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::GamesDB.ViewModel.GameVM 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);
         }
     }
 }
예제 #4
0
 public void UpdateChildListeners_Titles_SelectedGame(global::GamesDB.ViewModel.GameVM obj)
 {
     if (obj != cache_Titles_SelectedGame)
     {
         if (cache_Titles_SelectedGame != null)
         {
             ((global::System.ComponentModel.INotifyPropertyChanged)cache_Titles_SelectedGame).PropertyChanged -= PropertyChanged_Titles_SelectedGame;
             cache_Titles_SelectedGame = null;
         }
         if (obj != null)
         {
             cache_Titles_SelectedGame = obj;
             ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_Titles_SelectedGame;
         }
     }
 }
예제 #5
0
                public void UpdateChildListeners_(global::GamesDB.ViewModel.GameVM obj)
                {
                    MainPage_obj13_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_;
                        }
                    }
                }
예제 #6
0
 private void Update_Titles_SelectedGame(global::GamesDB.ViewModel.GameVM obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_Titles_SelectedGame(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_Titles_SelectedGame_cover(obj.cover, phase);
             this.Update_Titles_SelectedGame_name(obj.name, phase);
             this.Update_Titles_SelectedGame_summary(obj.summary, phase);
             this.Update_Titles_SelectedGame_releaseDate(obj.releaseDate, phase);
         }
     }
     else
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.UpdateFallback_Titles_SelectedGame_cover(phase);
         }
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.UpdateFallback_Titles_SelectedGame_name(phase);
         }
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.UpdateFallback_Titles_SelectedGame_summary(phase);
         }
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.UpdateFallback_Titles_SelectedGame_releaseDate(phase);
         }
     }
     if ((phase & ((1 << 0) | NOT_PHASED | DATA_CHANGED)) != 0)
     {
         XamlBindingSetters.Set_Windows_UI_Xaml_UIElement_Visibility(this.obj3, (global::Windows.UI.Xaml.Visibility) this.LookupConverter("ObjectExistsToVisible").Convert(obj, typeof(global::Windows.UI.Xaml.Visibility), null, null));
     }
 }
예제 #7
0
                public void PropertyChanged_Titles_SelectedGame(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MainPage_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::GamesDB.ViewModel.GameVM obj = sender as global::GamesDB.ViewModel.GameVM;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_Titles_SelectedGame_cover(obj.cover, DATA_CHANGED);
                                bindings.Update_Titles_SelectedGame_name(obj.name, DATA_CHANGED);
                                bindings.Update_Titles_SelectedGame_summary(obj.summary, DATA_CHANGED);
                                bindings.Update_Titles_SelectedGame_releaseDate(obj.releaseDate, DATA_CHANGED);
                            }
                            else
                            {
                                bindings.UpdateFallback_Titles_SelectedGame_cover(DATA_CHANGED);
                                bindings.UpdateFallback_Titles_SelectedGame_name(DATA_CHANGED);
                                bindings.UpdateFallback_Titles_SelectedGame_summary(DATA_CHANGED);
                                bindings.UpdateFallback_Titles_SelectedGame_releaseDate(DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "cover":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Titles_SelectedGame_cover(obj.cover, DATA_CHANGED);
                                }
                                else
                                {
                                    bindings.UpdateFallback_Titles_SelectedGame_cover(DATA_CHANGED);
                                }
                                break;
                            }

                            case "name":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Titles_SelectedGame_name(obj.name, DATA_CHANGED);
                                }
                                else
                                {
                                    bindings.UpdateFallback_Titles_SelectedGame_name(DATA_CHANGED);
                                }
                                break;
                            }

                            case "summary":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Titles_SelectedGame_summary(obj.summary, DATA_CHANGED);
                                }
                                else
                                {
                                    bindings.UpdateFallback_Titles_SelectedGame_summary(DATA_CHANGED);
                                }
                                break;
                            }

                            case "releaseDate":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Titles_SelectedGame_releaseDate(obj.releaseDate, DATA_CHANGED);
                                }
                                else
                                {
                                    bindings.UpdateFallback_Titles_SelectedGame_releaseDate(DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                    }
                }
예제 #8
0
            // MainPage_obj13_Bindings

            public void SetDataRoot(global::GamesDB.ViewModel.GameVM newDataRoot)
            {
                this.bindingsTracking.ReleaseAllListeners();
                this.dataRoot = newDataRoot;
            }