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;
        }
Example #2
0
        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);
            }
        }
 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);
     }
 }