private void CounterForm_Load(object sender, EventArgs e)
        {
            var initialStore = new StoreObj {
                Counter = 8
            };

            //_instanceModel = _fn.CreateModel(_fn.Container, _fn.State, _fn.NAP, initialStore, this);
            CounterForm._staticModel = _fn.CreateModel(_fn.Container, _fn.State, _fn.NAP, initialStore, this);
            _dispatch = _fn.CreateDispatch(CounterForm._staticModel.Present);
        }
Beispiel #2
0
 //public Model() { }
 public Model(
     Func <StoreObj, DatasetObj, StoreObj> container,
     Func <StoreObj, StateObj> state,
     Func <StateObj, Action <Action <DatasetObj> > > nap,
     StoreObj initialStore,
     //Action (command?), // Enhancer
     CounterForm form
     )
 {
     this.View      = form;        // Hack for now. Must be assigned before Store.
     this.Container = container;
     this.State     = state;
     this.NAP       = nap;
     this.Store     = initialStore;
 }