Beispiel #1
0
        private void btnNewConfig_Click(object sender, EventArgs e)
        {
            var initialConfigValues =
                configManager.HasConfigs() ? configManager.GetLastCreated() : null;
            var configForm = new SkylineBatchConfigForm(this, initialConfigValues, ConfigAction.Add, false);

            configForm.ShowDialog();
        }
Beispiel #2
0
        private void HandleEditEvent(object sender, EventArgs e)
        {
            var configRunner = configManager.GetSelectedConfigRunner();

            // can edit if config is not busy running, otherwise is view only
            Program.LogInfo(string.Format("{0} configuration \"{1}\"",
                                          (!configRunner.IsRunning() ? "Editing" : "Viewing"),
                                          configRunner.GetConfigName()));
            var configForm = new SkylineBatchConfigForm(this, configRunner.Config, ConfigAction.Edit, configRunner.IsBusy());

            configForm.ShowDialog();
        }
Beispiel #3
0
        private void btnCopy_Click(object sender, EventArgs e)
        {
            var configForm = new SkylineBatchConfigForm(this, configManager.GetSelectedConfig(), ConfigAction.Copy, false);

            configForm.ShowDialog();
        }