private void cmdPrevious_Click(object sender, EventArgs e) { if (null != m_Command) { if (rbNoResponse.Checked) { m_Command.ResponseMode = BM_CMD_RT.BM_CMD_RT_NO_RESPONSE; } else if (rbNoTimeout.Checked) { m_Command.ResponseMode = BM_CMD_RT.BM_CMD_RT_NO_TIME_OUT; } else { System.UInt16 hwResult = 0; if (DECBuilder.DECStringToWord(txtTimeout.Text, ref hwResult)) { m_Command.TimeOut = hwResult; } } } frmCommandWizardStepE CommandWizard = new frmCommandWizardStepE(m_Command); this.Hide(); CommandWizard.Show(); this.Dispose(); }
private void cmdNext_Click(object sender, EventArgs e) { if (null != m_Command) { if ("" != txtCommandBrief.Text.Trim()) { m_Command.Description = txtCommandBrief.Text; } else { m_Command.Description = m_Command.ID; } } frmCommandWizardStepE CommandWizard = new frmCommandWizardStepE(m_Command); this.Hide(); CommandWizard.Show(); this.Dispose(); }