Ejemplo n.º 1
0
 public MutableChild(Func <T> getter, string fullPath, IRemoteChangesStorage storage)
 {
     _getter       = getter;
     FullPath      = fullPath;
     _storage      = storage;
     _properties   = new Dictionary <string, INotifyable>();
     _childObjects = new Dictionary <string, IMutableChildBase>();
 }
 public MutableDictionary(Func <Dictionary <string, TValue> > getter, string fullPath, IRemoteChangesStorage storage) : base(getter, fullPath, storage)
 {
     _itemChangedCommand = new ReactiveCommand <string>();
 }
Ejemplo n.º 3
0
 public MutableDictionary(Func <Dictionary <string, TValue> > getter, string fullPath, IRemoteChangesStorage storage) : base(getter, fullPath, storage)
 {
 }
Ejemplo n.º 4
0
 public MutableUserDataChild(Func <SomeUserDataChild> getter, string fullPath, IRemoteChangesStorage storage) : base(getter, fullPath, storage)
 {
     FieldA = CreateReactiveProperty <string>(
         () => Object.FieldA,
         (v) => UpdateChildData(nameof(Object.FieldA), v),
         nameof(Object.FieldA));
     FieldB = CreateReactiveProperty <int>(
         () => Object.FieldB,
         (v) => UpdateChildData(nameof(Object.FieldB), v),
         nameof(Object.FieldB));
     DeepChild = new MutableUserDataDeepChild(
         () => Object.DeepChild,
         FullPath + nameof(Object.DeepChild) + "/",
         this);
 }
Ejemplo n.º 5
0
 public MutableList(Func <List <T> > getter, string fullPath, IRemoteChangesStorage storage) : base(getter, fullPath, storage)
 {
     _replaceObservable = new ReactiveCommand <CollectionReplaceEvent <T> >();
     _addObservable     = new ReactiveCommand <CollectionAddEvent <T> >();
 }
Ejemplo n.º 6
0
 public MutableUserDataDeepChild(Func <DeeperUserDataChild> getter, string fullPath, IRemoteChangesStorage storage) : base(getter, fullPath, storage)
 {
     FieldX = CreateReactiveProperty <string>(
         () => Object.FieldX,
         (val) => UpdateChildData(nameof(Object.FieldX), val),
         nameof(Object.FieldX));
     FieldY = CreateReactiveProperty <string>(
         () => Object.FieldY,
         (val) => UpdateChildData(nameof(Object.FieldY), val),
         nameof(Object.FieldY));
 }