Example #1
0
        internal void DataBind(SettingsPresenter presenter)
        {
            if (presenter != null)
            {
                settingsName.DataSource = presenter.SettingsNames;

                settingsName.DataBindings.Add("SelectedItem", presenter, "SettingsNameSelected", true, DataSourceUpdateMode.OnValidation);
                settingsName.SelectedIndexChanged += (s, args) => settingsName.DataBindings["SelectedItem"].WriteValue();
                settingsValue.DataBindings.Add("Text", presenter, "SettingsValue", true, DataSourceUpdateMode.OnPropertyChanged);
            }
        }
Example #2
0
        public TestSuiteView()
        {
            State = new TestSuiteState();
            TestCasesPresenter = new TestCasesPresenter(new RenameVariableWindow(), new FilterWindow(), new ConnectionStringWindow(), new TestCaseCollectionManager(), State.TestCases, State.Variables, State.ConnectionStringNames);
            TemplatePresenter = new TemplatePresenter(new TemplateManager(), State.Template);
            SettingsPresenter = new SettingsPresenter(new SettingsManager(), State.Settings);
            TestListPresenter = new TestListPresenter(new TestListManager(), State.Tests, State.TestCases, State.Variables, State.Template);
            TestSuitePresenter = new TestSuitePresenter(new TestSuiteManager(), State.Tests, State.Settings);
            MacroPresenter = new MacroPresenter();

            InitializeComponent();
            DeclareBindings();
            BindPresenter();
        }
 public RemoveReferenceCommand(SettingsPresenter presenter)
 {
     this.presenter = presenter;
 }
 public AddReferenceCommand(SettingsPresenter presenter, NewReferenceWindow window)
 {
     this.presenter = presenter;
     this.window = window;
 }