コード例 #1
0
 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; };
     }
 }
コード例 #2
0
ファイル: TestSuiteView.cs プロジェクト: Waltervondehans/NBi
        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();
        }
コード例 #3
0
 public SaveTemplateCommand(TemplatePresenter presenter)
 {
     this.presenter = presenter;
 }
コード例 #4
0
 public OpenTemplateCommand(TemplatePresenter presenter, OpenTemplateWindow window)
 {
     this.presenter = presenter;
     this.window = window;
 }