Example #1
0
 private void Update_model(global::Цей_день.ResultPage.ViewModel obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_model(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_model_playVisible(obj.playVisible, phase);
             this.Update_model_pauseVisible(obj.pauseVisible, phase);
         }
     }
 }
Example #2
0
 public void UpdateChildListeners_model(global::Цей_день.ResultPage.ViewModel obj)
 {
     if (obj != cache_model)
     {
         if (cache_model != null)
         {
             ((global::System.ComponentModel.INotifyPropertyChanged)cache_model).PropertyChanged -= PropertyChanged_model;
             cache_model = null;
         }
         if (obj != null)
         {
             cache_model = obj;
             ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_model;
         }
     }
 }
Example #3
0
                public void PropertyChanged_model(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    ResultPage_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::Цей_день.ResultPage.ViewModel obj = sender as global::Цей_день.ResultPage.ViewModel;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_model_playVisible(obj.playVisible, DATA_CHANGED);
                                bindings.Update_model_pauseVisible(obj.pauseVisible, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "playVisible":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_model_playVisible(obj.playVisible, DATA_CHANGED);
                                }
                                break;
                            }

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

                            default:
                                break;
                            }
                        }
                    }
                }