예제 #1
0
        private void cmdPrevious_Click(object sender, EventArgs e)
        {
            if (null != m_Command)
            {
                m_Command.ID = txtCommandID.Text;
            }

            frmCommandWizardStepA CommandWizard = new frmCommandWizardStepA(m_Command);

            this.Hide();
            CommandWizard.Show();
            this.Dispose();
        }
        private void cmdPrevious_Click(object sender, EventArgs e)
        {
            this.Hide();
            if (null != m_Command)
            {
                switch (m_Command.Type)
                {
                case BM_CMD_TYPE.BM_CMD_TYPE_NO_PARAMETER:
                case BM_CMD_TYPE.BM_CMD_TYPE_BLOCK_READ:
                case BM_CMD_TYPE.BM_CMD_TYPE_WORD_READ:
                {
                    frmCommandWizardStepF CommandWizard = new frmCommandWizardStepF(m_Command);
                    CommandWizard.Show();
                }
                break;

                case BM_CMD_TYPE.BM_CMD_TYPE_BLOCK_WRITE:
                {
                    frmCommandWizardStepGWB CommandWizard = new frmCommandWizardStepGWB(m_Command);
                    CommandWizard.Show();
                }
                break;

                case BM_CMD_TYPE.BM_CMD_TYPE_WORD_WRITE:
                {
                    frmCommandWizardStepGWW CommandWizard = new frmCommandWizardStepGWW(m_Command);
                    CommandWizard.Show();
                }
                break;
                }
            }
            else
            {
                frmCommandWizardStepA CommandWizard = new frmCommandWizardStepA(m_Command);
                CommandWizard.Show();
            }
            this.Dispose();
        }
        //! \brief method for show a command wizard to initialize a specified command
        public void ShowWizard(ESCommand Command)
        {
            frmCommandWizardStepA CommandWizard = new frmCommandWizardStepA(Command);

            CommandWizard.Show();
        }