Exemplo n.º 1
0
 // Update methods for each path node used in binding steps.
 private void Update_(global::BitcoinPriceTracker.ViewModels.TopTenViewModel obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_Coin_Picture_Scale(obj.Coin_Picture_Scale, phase);
         }
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_Coin_Picture(obj.Coin_Picture, phase);
             this.Update_Coin_Ticker_Tape(obj.Coin_Ticker_Tape, phase);
             this.Update_Coin_Price_USD(obj.Coin_Price_USD, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_Coin_Sign(obj.Coin_Sign, phase);
         }
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_Coin_Name(obj.Coin_Name, phase);
         }
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_Coin_Circ_String(obj.Coin_Circ_String, phase);
             this.Update_Coin_CMC_String(obj.Coin_CMC_String, phase);
             this.Update_Coin_Volume_String(obj.Coin_Volume_String, phase);
             this.Update_Coin_24_Hour_Change_String(obj.Coin_24_Hour_Change_String, phase);
         }
     }
 }
Exemplo n.º 2
0
 public void DataContextChangedHandler(global::Windows.UI.Xaml.FrameworkElement sender, global::Windows.UI.Xaml.DataContextChangedEventArgs args)
 {
     global::BitcoinPriceTracker.ViewModels.TopTenViewModel data = args.NewValue as global::BitcoinPriceTracker.ViewModels.TopTenViewModel;
     if (args.NewValue != null && data == null)
     {
         throw new global::System.ArgumentException("Incorrect type passed into template. Based on the x:DataType global::BitcoinPriceTracker.ViewModels.TopTenViewModel 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::BitcoinPriceTracker.ViewModels.TopTenViewModel obj, int phase)
 {
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | (1 << 0))) != 0)
         {
             this.Update_Coin_Name(obj.Coin_Name, phase);
         }
     }
 }
Exemplo n.º 4
0
                public void UpdateChildListeners_(global::BitcoinPriceTracker.ViewModels.TopTenViewModel obj)
                {
                    MainPage_obj9_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.º 5
0
                public void PropertyChanged_(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    MainPage_obj9_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::BitcoinPriceTracker.ViewModels.TopTenViewModel obj = sender as global::BitcoinPriceTracker.ViewModels.TopTenViewModel;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_Coin_Picture(obj.Coin_Picture, DATA_CHANGED);
                                bindings.Update_Coin_Ticker_Tape(obj.Coin_Ticker_Tape, DATA_CHANGED);
                                bindings.Update_Coin_Price_USD(obj.Coin_Price_USD, DATA_CHANGED);
                                bindings.Update_Coin_Name(obj.Coin_Name, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Coin_Picture":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_Coin_Picture(obj.Coin_Picture, DATA_CHANGED);
                                }
                                break;
                            }

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

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

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

                            default:
                                break;
                            }
                        }
                    }
                }
Exemplo n.º 6
0
            // MainPage_obj9_Bindings

            public void SetDataRoot(global::BitcoinPriceTracker.ViewModels.TopTenViewModel newDataRoot)
            {
                this.bindingsTracking.ReleaseAllListeners();
                this.dataRoot = newDataRoot;
            }
Exemplo n.º 7
0
            // MainPage_obj8_Bindings

            public void SetDataRoot(global::BitcoinPriceTracker.ViewModels.TopTenViewModel newDataRoot)
            {
                this.dataRoot = newDataRoot;
            }