Example #1
0
                public void PropertyChanged_dpvm(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    DetaljiPotrosaca_obj1_Bindings bindings;

                    if (WeakRefToBindingObj.TryGetTarget(out bindings))
                    {
                        string propName = e.PropertyName;
                        global::Posta.ViewModel.DetaljiPotrosacaViewModel obj = sender as global::Posta.ViewModel.DetaljiPotrosacaViewModel;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_dpvm_Ime(obj.Ime, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "Ime":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_dpvm_Ime(obj.Ime, DATA_CHANGED);
                                }
                                break;
                            }

                            default:
                                break;
                            }
                        }
                    }
                }
Example #2
0
 private void Update_dpvm(global::Posta.ViewModel.DetaljiPotrosacaViewModel obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_dpvm(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_dpvm_Ime(obj.Ime, phase);
         }
     }
 }
Example #3
0
 public void UpdateChildListeners_dpvm(global::Posta.ViewModel.DetaljiPotrosacaViewModel obj)
 {
     if (obj != cache_dpvm)
     {
         if (cache_dpvm != null)
         {
             ((global::System.ComponentModel.INotifyPropertyChanged)cache_dpvm).PropertyChanged -= PropertyChanged_dpvm;
             cache_dpvm = null;
         }
         if (obj != null)
         {
             cache_dpvm = obj;
             ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_dpvm;
         }
     }
 }