private void bOK_Click(object sender, EventArgs e) { if (instruction == null) { this.instruction = new CustomSetupInstruction(); } this.instruction.Code = commandControl.Text; this.instruction.Type = commandControl.CommandType; }
private void mnuCustomCommand_Click(object sender, EventArgs e) { CustomSetupInstruction instruction = new CustomSetupInstruction(); instruction.Application = m_ApplicationJob; if (InstructionBaseDialog.ShowDialog(this, instruction, txtExecuteAfter.VariableNames, m_ApplicationJob)) { SetupInstructionListBoxPanel panel = new SetupInstructionListBoxPanel(instruction); panel.VariableNames = txtExecuteAfter.VariableNames; instructionsListBox.Panels.Add(panel); } }