public ApplicationPresenter([NotNull] Shell view, [CanBeNull] Simulator simulator, Dispatcher mainDispatcher) : base(view, "ApplicationPresenter")
        {
            Shell          = view;
            MainDispatcher = mainDispatcher;
            _simulator     = simulator;
            if (_simulator != null)
            {
                CurrentCategories = _simulator.Categories;
            }

            if (!Config.IsInUnitTesting)
            {
                _welcomePresenter = new WelcomePresenter(this, new WelcomeView());
                View.AddTab(_welcomePresenter);
                InitOpenItemDict();
            }
        }
Example #2
0
 /// <summary>
 /// paint handle for this form where we call the presenter class to set the theme properties
 /// </summary>
 /// <param name="sender">obligated sender object parameter</param>
 /// <param name="e">obligated paint event arguments parameter</param>
 private void WelcomeForm_Paint(object sender, PaintEventArgs e)
 {
     welcomePresenter = new WelcomePresenter(this);
     welcomePresenter.GetColor();
 }