Ejemplo n.º 1
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     ServiceType           = ServiceType.Production;
     applicationController = ApplicationController.Create();
     serviceProvider       = ServiceProvider.Create(applicationController, ServiceType.Production);
     applicationController.Initialize(serviceProvider);
     applicationController.Start();
 }
Ejemplo n.º 2
0
        // it needs to be initialized first
        public void Initialize(IPomodoleServiceProvider serviceProvider)
        {
            this.serviceProvider = serviceProvider;
            Subscribe(serviceProvider.GetConfigManager());
            SetupViewModelForMainWindow();
            SetupViewModelForConfigWindow();

            Trigger(new ConfigurationDataManagingMessage(this, ConfigurationDataManagingMessage.ActionType.Load));
        }