private void LoadExperimentTemplateButtonClick(object sender, EventArgs e)
        {
            ExperimentBase experiment = ExperimentSetupWindow.LoadExperiment();

            if (experiment != null)
            {
                SetExperiment(experiment);
            }
        }
        private void AddExperimentButtonClick(object sender, EventArgs e)
        {
            ExperimentSetupWindow esw = new ExperimentSetupWindow();

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

            AddExperiment(esw.GetConfiguredExperiment());
        }
        private void NewExperimentButtonClick(object sender, EventArgs e)
        {
            var experimentSetupWindow = new ExperimentSetupWindow();

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

            var experimentWindow = experimentSetupWindow.GetConfiguredExperimentWindow();

            experimentWindow.Show();
        }
        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);
        }