Example #1
0
        public void dispose()
        {
            foreach ( KeyValuePair<string, IIwModel> item in _modelList )
            {
                item.Value.dispose ();
            }

            _modelList.Clear ();
            _dispatcher = null;
        }
Example #2
0
        public void dispose()
        {
            foreach ( KeyValuePair <string, IIwWire> tmpRegister in _wireList )
            {
                tmpRegister.Value.dispose ();
            }

            _wireList.Clear ();
            _dispatcher = null;
        }
Example #3
0
        public void dispose()
        {
            foreach ( KeyValuePair<string,List<Type>> _commands in _commandList )
            {
                _commands.Value.Clear ();
            }

            _commandList.Clear ();
            _dispatcher = null;
        }
Example #4
0
 public IwViewsManager( IwEventDispatcher dispatcher )
 {
     _dispatcher = dispatcher;
     _viewList = new Dictionary<string, IIwView> ();
     _viewsForNotify = new Dictionary<string, List<IIwView>> ();
 }
Example #5
0
 public IwWiresManager( IwEventDispatcher dispatcher )
 {
     _dispatcher = dispatcher;
     _wireList = new Dictionary<string, IIwWire> ();
 }
Example #6
0
 public IwModelsManager( IwEventDispatcher dispatcher )
 {
     _dispatcher = dispatcher;
     _modelList = new Dictionary<string, IIwModel> ();
 }
Example #7
0
        public void initialize()
        {
            _dispatcher = new IwEventDispatcher ();
            _dispatcher.OnTriggerEvent += HandleOnTriggerEvent;

            _controller = new IwController ( _dispatcher );
            _modelsMgr = new IwModelsManager ( _dispatcher );
            _viewsMgr = new IwViewsManager ( _dispatcher );
            _wireMgr = new IwWiresManager (_dispatcher);

            registerCommands ();
            registerModels ();
            registerViews ();
            registerWires ();
        }
Example #8
0
 public IwController( IwEventDispatcher dispatcher )
 {
     _dispatcher = dispatcher;
     _commandList = new Dictionary<string, List<Type>> ();
 }