Ejemplo n.º 1
0
        private void LoadStep0()
        {
            CurrentStep = 0;

            panelMain.Controls.Clear();
            CurrentUserControl = new CreateRepository0();
            CreateRepository0 RealCurrentUserControl = (CreateRepository0)CurrentUserControl;

            panelMain.Controls.Add(CurrentUserControl);

            foreach (Type T in this._Connectors)
            {
                RealCurrentUserControl.comboBox1.Items.Add(T.ToString());
            }

            if (ResultSelectedType == null)
            {
                RealCurrentUserControl.comboBox1.SelectedIndex = 0;
            }
            else
            {
                RealCurrentUserControl.comboBox1.SelectedIndex = RealCurrentUserControl.comboBox1.Items.IndexOf(ResultSelectedType);
            }

            bt_Back.Visible = false;
            bt_Next.Focus();
        }
Ejemplo n.º 2
0
        private bool ValidateStep0()
        {
            CreateRepository0 RealCurrentUserControl = (CreateRepository0)CurrentUserControl;

            ResultSelectedType = RealCurrentUserControl.comboBox1.Items[RealCurrentUserControl.comboBox1.SelectedIndex].ToString();
            return(true);
        }