Exemplo n.º 1
0
 private void Update_VM(global::Parejas.Viewmodel.TableroVM obj, int phase)
 {
     this.bindingsTracking.UpdateChildListeners_VM(obj);
     if (obj != null)
     {
         if ((phase & (NOT_PHASED | DATA_CHANGED | (1 << 0))) != 0)
         {
             this.Update_VM_CartasTablero(obj.CartasTablero, phase);
             this.Update_VM_Seleccion(obj.Seleccion, phase);
         }
     }
 }
Exemplo n.º 2
0
 public void UpdateChildListeners_VM(global::Parejas.Viewmodel.TableroVM obj)
 {
     if (obj != cache_VM)
     {
         if (cache_VM != null)
         {
             ((global::System.ComponentModel.INotifyPropertyChanged)cache_VM).PropertyChanged -= PropertyChanged_VM;
             cache_VM = null;
         }
         if (obj != null)
         {
             cache_VM = obj;
             ((global::System.ComponentModel.INotifyPropertyChanged)obj).PropertyChanged += PropertyChanged_VM;
         }
     }
 }
Exemplo n.º 3
0
                public void PropertyChanged_VM(object sender, global::System.ComponentModel.PropertyChangedEventArgs e)
                {
                    Tablero_obj1_Bindings bindings = TryGetBindingObject();

                    if (bindings != null)
                    {
                        string propName = e.PropertyName;
                        global::Parejas.Viewmodel.TableroVM obj = sender as global::Parejas.Viewmodel.TableroVM;
                        if (global::System.String.IsNullOrEmpty(propName))
                        {
                            if (obj != null)
                            {
                                bindings.Update_VM_CartasTablero(obj.CartasTablero, DATA_CHANGED);
                                bindings.Update_VM_Seleccion(obj.Seleccion, DATA_CHANGED);
                            }
                        }
                        else
                        {
                            switch (propName)
                            {
                            case "CartasTablero":
                            {
                                if (obj != null)
                                {
                                    bindings.Update_VM_CartasTablero(obj.CartasTablero, DATA_CHANGED);
                                }
                                break;
                            }

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

                            default:
                                break;
                            }
                        }
                    }
                }