protected override void Init() { Container.Register <ILogger, DebugLogger>(); Container.Register <IDbService, TestDbService>(); SmallProfiler.Start(); Container.Resolve <IDbService>().Initialize(); AsanaStateService.Initialize(); ViewModelMap.Register <DevRain.Asana.Pages.MainPage, MainViewModel>(); ViewModelMap.Register <WorkspaceDetails, WorkspaceDetailsViewModel>(); ViewModelMap.Register <UserDetails, UserDetailsViewModel>(); ViewModelMap.Register <AddEditProject, AddEditProjectViewModel>(); ViewModelMap.Register <TagDetails, TagDetailsViewModel>(); ViewModelMap.Register <TaskDetails, TaskDetailsViewModel>(); ViewModelMap.Register <AddEditTask, AddEditTaskViewModel>(); ViewModelMap.Register <ProjectDetails, ProjectDetailsViewModel>(); ViewModelCache.Register <WorkspaceDetailsViewModel>(); ViewModelCache.Register <ProjectDetailsViewModel>(); ViewModelCache.Register <UserDetailsViewModel>(); ViewModelCache.Register <TagDetailsViewModel>(); ViewModelCache.Register <TaskDetailsViewModel>(); //Container.Resolve<ILogger>().Debug("Init complete"); }
private void clearAllViewModelsAndSetupRootViewModel(ViewModelCache viewModelCache, ViewModelLoader viewModelLoader) { viewModelCache.ClearAll(); var viewModel = viewModelLoader.Load <MainTabBarViewModel>(); viewModelCache.Cache(viewModel); viewModel.Initialize(); }
protected override void Init() { Container.Register <ILogger, DebugLogger>(); Container.Register <DbService, DbService>(); Container.RegisterInstance <IAsanaResponseProcessor, AsanaResponseProcessor>(); SmallProfiler.Start(); Container.Resolve <DbService>().Initialize(); InteractionEffectManager.AllowedTypes.Add(typeof(RadDataBoundListBoxItem)); Counter.Start(10669); RadDiagnostics diagnostics = new RadDiagnostics(); diagnostics.EmailTo = AsanaConstants.FeedbackEmail; diagnostics.EmailSubject = AsanaConstants.AppTitle; diagnostics.ApplicationVersion = DeviceHelper.GetAppVersion().ToString(); //diagnostics.MessageBoxInfo.Title = ""; diagnostics.MessageBoxInfo.Content = "Would you to like to send information about error to developers?"; diagnostics.Init(); Telerik.Windows.Controls.ApplicationUsageHelper.Init(DeviceHelper.GetAppVersion().ToString()); /// /// AsanaStateService.Initialize(); //ApplicationRatingNotificationServiceFromNokia.Initialize("Winsana","*****@*****.**"); ViewModelMap.Register <MainPage, MainViewModel>(); ViewModelMap.Register <WorkspaceDetails, WorkspaceDetailsViewModel>(); ViewModelMap.Register <UserDetails, UserDetailsViewModel>(); ViewModelMap.Register <AddEditProject, AddEditProjectViewModel>(); ViewModelMap.Register <TagDetails, TagDetailsViewModel>(); ViewModelMap.Register <TaskDetails, TaskDetailsViewModel>(); ViewModelMap.Register <AddEditTask, AddEditTaskViewModel>(); ViewModelMap.Register <ProjectDetails, ProjectDetailsViewModel>(); ViewModelMap.Register <AllTasks, AllTasksViewModel>(); ViewModelMap.Register <SettingsPage, SettingsViewModel>(); ViewModelCache.Register <WorkspaceDetailsViewModel>(); ViewModelCache.Register <ProjectDetailsViewModel>(); ViewModelCache.Register <UserDetailsViewModel>(); ViewModelCache.Register <TagDetailsViewModel>(); ViewModelCache.Register <TaskDetailsViewModel>(); System.Threading.Tasks.TaskScheduler.UnobservedTaskException += TaskScheduler_UnobservedTaskException; }
public ComponentInterceptor(ViewModelCache cache) { this.modelCache = cache; }
public ElementComponentActivator(ViewModelCache modelCache, ComponentCache componentCache) { this.modelCache = modelCache; this.componentCache = componentCache; }