Beispiel #1
0
        private void App_OnStartup(object sender, StartupEventArgs e)
        {
            IStepModel stepModel = new StepModel();
            IController controller = new MainController(stepModel);

            ISerieStepUIC currentlyWatching = new Step("Currently Watching", new View(new ViewModel(stepModel, stepModel.CurrentlyWatching, controller)));
            ISerieStepUIC completed = new Step("Completed", new View(new ViewModel(stepModel, stepModel.Completed, controller)));
            ISerieStepUIC onHold = new Step("On Hold", new View(new ViewModel(stepModel, stepModel.OnHold, controller)));
            ISerieStepUIC dropped = new Step("Dropped", new View(new ViewModel(stepModel, stepModel.Dropped, controller)));
            ISerieStepUIC planToWatch = new Step("Plan To Watch", new View(new ViewModel(stepModel, stepModel.PlanToWatch, controller)));

            IShellViewModel shellViewmodel = new MainShellViewModel(controller, currentlyWatching, completed, onHold, dropped, planToWatch);
            var shellView = new ShellView(shellViewmodel);
            shellView.Show();
        }
Beispiel #2
0
        private void App_OnStartup(object sender, StartupEventArgs e)
        {
            IStepModel  stepModel  = new StepModel();
            IController controller = new MainController(stepModel);

            ISerieStepUIC currentlyWatching = new Step("Currently Watching", new View(new ViewModel(stepModel, stepModel.CurrentlyWatching, controller)));
            ISerieStepUIC completed         = new Step("Completed", new View(new ViewModel(stepModel, stepModel.Completed, controller)));
            ISerieStepUIC onHold            = new Step("On Hold", new View(new ViewModel(stepModel, stepModel.OnHold, controller)));
            ISerieStepUIC dropped           = new Step("Dropped", new View(new ViewModel(stepModel, stepModel.Dropped, controller)));
            ISerieStepUIC planToWatch       = new Step("Plan To Watch", new View(new ViewModel(stepModel, stepModel.PlanToWatch, controller)));

            IShellViewModel shellViewmodel = new MainShellViewModel(controller, currentlyWatching, completed, onHold, dropped, planToWatch);
            var             shellView      = new ShellView(shellViewmodel);

            shellView.Show();
        }