예제 #1
0
파일: TestSuiteView.cs 프로젝트: ywscr/NBi
        protected void DeclareBindings()
        {
            testCasesControl.DataBind(TestCasesPresenter);
            settingsControl.DataBind(SettingsPresenter);
            templateControl.DataBind(TemplatePresenter);
            testListControl.DataBind(TestListPresenter);

            TemplatePresenter.PropertyChanged += (sender, e) => TestListPresenter.Template = TemplatePresenter.Template;
            TestListPresenter.PropertyChanged += (sender, e) => TestSuitePresenter.RefreshCommands();

            TestSuitePresenter.TestSuiteLoaded += (sender, e) =>
            {
                SettingsPresenter.Refresh();
                TestListPresenter.Refresh();
            };
        }