예제 #1
0
        private void cancel_bt_Click(object sender, EventArgs e)
        {
            Control fixedpanel = this.Parent;

            this.Hide();
            //fixedpanel.Controls.Clear();
            UC_Login login = new UC_Login();

            fixedpanel.Controls.Add(login);
        }
예제 #2
0
        public LoginForm(String Type)
        {
            InitializeComponent();

            UC_Login  Login    = new UC_Login();
            UC_signup Register = new UC_signup();

            fixedpanel.Controls.Clear();
            if (Type.Equals("Login"))
            {
                fixedpanel.Controls.Add(Login);
            }
            else
            {
                fixedpanel.Controls.Add(Register);
            }
        }