public DemoPresenter(IDemoView view) { _view = view; _operation = new CacheOperation(); DeviceCache cacheInstance = DeviceCache.GetInstance(); cacheInstance.AddAction += AddDeviceToView; cacheInstance.RemoveAction += RemoveDeviceFromView; }
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; }
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(); }
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); } }
/* * pass in the view on the construct & instansiate the db repository instance. */ public DemoPresenter(IDemoView view) { _view = view; _entityRepository = new DAL.Repository.nHibernate.EntityRepository(); }
public DemoPresenter(IDemoView view) { _view = view; _repository = new Repository(); }