private void removeButton_Click(object sender, System.EventArgs e)
        {
            if (project.Configs.Count == 1)
            {
                string msg = "Removing the last configuration will make the project unloadable until you add another configuration.\r\rAre you sure you want to remove the configuration?";

                if (MessageDisplay.Ask(msg) == DialogResult.No)
                {
                    return;
                }
            }

            project.Configs.RemoveAt(selectedIndex);
            FillListBox();
        }
Beispiel #2
0
        private void okButton_Click(object sender, System.EventArgs e)
        {
            if (Services.TestLoader.IsTestLoaded && this.HasChangesRequiringReload)
            {
                DialogResult answer = MessageDisplay.Ask(
                    "Some changes will only take effect when you reload the test project. Do you want to reload now?");

                if (answer == DialogResult.Yes)
                {
                    this.reloadProjectOnClose = true;
                }
            }

            ApplySettings();

            DialogResult = DialogResult.OK;

            Close();
        }