Ejemplo n.º 1
0
        public DemoPresenter(IDemoView view)
        {
            _view      = view;
            _operation = new CacheOperation();
            DeviceCache cacheInstance = DeviceCache.GetInstance();

            cacheInstance.AddAction    += AddDeviceToView;
            cacheInstance.RemoveAction += RemoveDeviceFromView;
        }
Ejemplo n.º 2
0
 public WelcomeController(IRegionManager regionManager,
     IWelcomeView welcomeView,
     IWelcomeStep1View welcomeStep1View,
     IConnectivitySettingsView connectivitySettingsView,
     IAccountSettingsView accountSettingsView,
     IDemoView demoView)
 {
     _regionManager = regionManager;
     _welcomeView = welcomeView;
     _welcomeStep1View = welcomeStep1View;
     _connectivitySettingsView = connectivitySettingsView;
     _accountSettingsView = accountSettingsView;
     _demoView = demoView;
 }
Ejemplo n.º 3
0
 public WelcomeController(IRegionManager regionManager,
                          IWelcomeView welcomeView,
                          IWelcomeStep1View welcomeStep1View,
                          IConnectivitySettingsView connectivitySettingsView,
                          IAccountSettingsView accountSettingsView,
                          IDemoView demoView)
 {
     _regionManager            = regionManager;
     _welcomeView              = welcomeView;
     _welcomeStep1View         = welcomeStep1View;
     _connectivitySettingsView = connectivitySettingsView;
     _accountSettingsView      = accountSettingsView;
     _demoView = demoView;
 }
Ejemplo n.º 4
0
 public ToolbarController(IRegionManager regionManager,
     ISchedulerProvider schedulerProvider,
     IPersonalizationSettings settings,
     ISettingsView settingsView,
     IConnectivitySettingsView connectivitySettingsView,
     IAccountSettingsView accountSettingsView,
     IDemoView demoView)
 {
     _regionManager = regionManager;
     _schedulerProvider = schedulerProvider;
     _settings = settings;
     _settingsView = settingsView;
     _connectivitySettingsView = connectivitySettingsView;
     _accountSettingsView = accountSettingsView;
     _demoView = demoView;
     _taskTaskbarIcon = new TaskbarIcon();
 }
Ejemplo n.º 5
0
 public ToolbarController(IRegionManager regionManager,
                          ISchedulerProvider schedulerProvider,
                          IPersonalizationSettings settings,
                          ISettingsView settingsView,
                          IConnectivitySettingsView connectivitySettingsView,
                          IAccountSettingsView accountSettingsView,
                          IDemoView demoView)
 {
     _regionManager            = regionManager;
     _schedulerProvider        = schedulerProvider;
     _settings                 = settings;
     _settingsView             = settingsView;
     _connectivitySettingsView = connectivitySettingsView;
     _accountSettingsView      = accountSettingsView;
     _demoView                 = demoView;
     _taskTaskbarIcon          = new TaskbarIcon();
 }
Ejemplo n.º 6
0
        public DemoController(IDemoView demoView)
        {
            _Persons = new BindingList <Person>();

            View = demoView;

            View.AddNewPerson    += View_AddNewPerson;
            View.Cancel          += View_Cancel;
            View.ExitApplication += View_ExitApplication;
            View.ModifyPerson    += View_ModifyPerson;
            View.RemovePerson    += View_RemovePerson;
            View.SaveChanges     += View_SaveChanges;
            View.ViewIsReady     += View_ViewIsReady;

            if (View.ViewReady)
            {
                View.Initialize();
                View.AwaitingMode();
                View.SetPeopleList(_Persons);
            }
        }
Ejemplo n.º 7
0
 /*
 * pass in the view on the construct & instansiate the db repository instance.
 */
 public DemoPresenter(IDemoView view)
 {
     _view = view;
     _entityRepository = new DAL.Repository.nHibernate.EntityRepository();
 }
Ejemplo n.º 8
0
 public DemoPresenter(IDemoView view)
 {
     _view       = view;
     _repository = new Repository();
 }