Пример #1
0
        private void btn_close_Click(object sender, EventArgs e)
        {
            this.Hide();
            Frm_Login NEW = new Frm_Login();

            NEW.ShowDialog();
            this.Close();
        }
Пример #2
0
        private void label1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Frm_Login LOGIN = new Frm_Login();

            LOGIN.ShowDialog();
            this.Close();
        }
Пример #3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.Hide();
            // Frm_Dashboard New = new Frm_Dashboard();
            Frm_Login New = new Frm_Login();

            New.ShowDialog();
            this.Close();
        }
Пример #4
0
        private void btn_SignUp_Click(object sender, EventArgs e)
        {
            User New = new User();

            if (New.CheckInList(txt_userName.Text) == false)
            {
                User NEW = new User(txt_userName.Text, txt_Email.Text, txt_password.Text);
                MessageBox.Show("User Created Succesfully");
                this.Hide();
                Frm_Login NEW1 = new Frm_Login();
                NEW1.ShowDialog();
                this.Close();
            }
            else
            {
                MessageBox.Show("UserName Already Taken", "Create Account");
            }
        }