public TreeBasedSettingsDialog(TestCentricPresenter presenter, ITestModel model) : base(presenter, model)
        {
            // This call is required by the Windows Form Designer.
            InitializeComponent();

            // TODO: Add any initialization after the InitializeComponent call
        }
Exemple #2
0
 public static void Display(TestCentricPresenter presenter, ITestModel model)
 {
     TreeBasedSettingsDialog.Display(presenter, model,
                                     new GuiSettingsPage("Gui.General"),
                                     new TreeSettingsPage("Gui.Tree Display"),
                                     new AssemblyReloadSettingsPage("Gui.Assembly Reload"),
                                     new TextOutputSettingsPage("Gui.Text Output"),
                                     new AdvancedLoaderSettingsPage("Engine.Advanced"));
 }
 public static void Display(TestCentricPresenter presenter, ITestModel model, params SettingsPage[] pages)
 {
     using (TreeBasedSettingsDialog dialog = new TreeBasedSettingsDialog(presenter, model))
     {
         dialog.Font = model.Settings.Gui.Font;
         dialog.SettingsPages.AddRange(pages);
         dialog.ShowDialog();
     }
 }
 // NOTE: We have to keep a default constructor for design mode
 public SettingsDialogBase(TestCentricPresenter presenter, ITestModel model) : this()
 {
     Presenter = presenter;
     Model     = model;
     Settings  = model.Settings;
 }