コード例 #1
0
        private void AddExperimentButtonClick(object sender, EventArgs e)
        {
            ExperimentSetupWindow esw = new ExperimentSetupWindow();

            if (esw.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            AddExperiment(esw.GetConfiguredExperiment());
        }
コード例 #2
0
        private void NewExperimentButtonClick(object sender, EventArgs e)
        {
            var experimentSetupWindow = new ExperimentSetupWindow();

            if (experimentSetupWindow.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            var experimentWindow = experimentSetupWindow.GetConfiguredExperimentWindow();

            experimentWindow.Show();
        }
コード例 #3
0
        private void ConfigureButtonClick(object sender, EventArgs e)
        {
            ExperimentInfo selectedExperimentInfo = GetSelectedExperimentInfo();

            if (selectedExperimentInfo == null)
            {
                return;
            }

            ExperimentSetupWindow esw = new ExperimentSetupWindow();

            esw.SetExperiment(selectedExperimentInfo.Experiment);

            if (esw.ShowDialog() != DialogResult.OK)
            {
                return;
            }

            selectedExperimentInfo.Experiment = esw.GetConfiguredExperiment();

            RefreshLabels(selectedExperimentInfo.Experiment);
        }