示例#1
0
        public RunnerConfigView()
        {
            RunnerConfigPresenter = new RunnerConfigPresenter(new Service.RunnerConfig.RunnerConfigManager());

            InitializeComponent();
            DeclareBindings();
            BindPresenter();
        }
示例#2
0
        internal void DataBind(RunnerConfigPresenter presenter)
        {
            if (presenter != null)
            {
                frameworkPath.DataBindings.Add("Path", presenter, "FrameworkPath", false, DataSourceUpdateMode.OnPropertyChanged);
                rootPath.DataBindings.Add("Path", presenter, "RootPath", false, DataSourceUpdateMode.OnPropertyChanged);
                testSuiteFile.DataBindings.Add("Path", presenter, "TestSuiteFile", false, DataSourceUpdateMode.OnPropertyChanged);
                buildNUnit.DataBindings.Add("Checked", presenter, "IsBuildNUnit", false, DataSourceUpdateMode.OnPropertyChanged);
                buildGallio.DataBindings.Add("Checked", presenter, "IsBuildGallio", false, DataSourceUpdateMode.OnPropertyChanged);

                presenter.SendWarning = DisplayWarning;
                presenter.SendValidation = DisplayValidation;
            }
        }
 public CreateConfigsCommand(RunnerConfigPresenter presenter)
 {
     this.presenter = presenter;
 }