コード例 #1
0
ファイル: App.xaml.cs プロジェクト: dreanor/StreamCompanion
        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();
        }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: dreanor/StreamCompanion
        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();
        }