internal void DataBind(TemplatePresenter presenter) { if (presenter != null) { template.DataBindings.Add("Text", presenter, "Template", true, DataSourceUpdateMode.OnPropertyChanged); presenter.PropertyChanged += (sender, e) => { template.Text = presenter.Template; }; } }
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 SaveTemplateCommand(TemplatePresenter presenter) { this.presenter = presenter; }
public OpenTemplateCommand(TemplatePresenter presenter, OpenTemplateWindow window) { this.presenter = presenter; this.window = window; }