public EditMinerContainer()
 {
     AddMiner       = new AddMiner(this);
     AddDualMiner   = new AddDualMiner(this);
     m_finishScreen = new AddMinerFinish(this);
     InitializeComponent();
 }
        public void ShowStage()
        {
            Form objForm = null;

            switch (m_currentState)
            {
            case 0:
                objForm = AddMiner;
                break;

            case 1:

                if (m_selected_coin != null)
                {
                    ICoinConfigurer form = m_selected_coin.SettingsScreen;
                    form.AssignParent(this);
                    objForm = form as Form;
                }
                break;

            case 2:    //Dual miner selection screen
                AddDualMiner.SelectedCoin = m_selected_coin;
                AddDualMiner.Init();
                objForm = AddDualMiner;
                break;

            case 3:    //Dual miner settings screen
                if (m_selected_dual_coin != null)
                {
                    ICoinConfigurer form = m_selected_dual_coin.SettingsScreen;
                    form.AssignParent(this);
                    objForm = form as Form;
                }
                break;

            case 4:    //Finish screen
                //m_finishScreen.SelectedCoin = m_selected_coin;
                //m_finishScreen.SelectedDualCoin = m_selected_dual_coin;
                m_finishScreen.UpdateUI();
                objForm = m_finishScreen;
                break;
            }
            if (objForm != null)
            {
                objForm.TopLevel = false;
                pnlForm.Controls.Clear();
                pnlForm.Controls.Add(objForm);
                objForm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                objForm.Dock            = DockStyle.Fill;
                objForm.Show();
            }
        }