Beispiel #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            loginForm form = new loginForm();

            this.Hide();
            form.Show();
        }
        private void mainMenuButton_Click(object sender, EventArgs e)
        {
            this.Hide();
            loginForm logForm = new loginForm();

            logForm.Show();
        }
Beispiel #3
0
 private void metroButton1_Click(object sender, EventArgs e)
 {
     if (nameTb.Text == "" || surrTb.Text == "" || passTb.Text == "" || emailTb.Text == "")
     {
         MetroMessageBox.Show(this, "Please complete all empty spaces!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         if (errorProvider1.GetError(emailTb) == "" && errorProvider2.GetError(passTb) == "")
         {
             if (user.register())
             {
                 MetroMessageBox.Show(this, "Succes!", "Account created", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                 this.Hide();
                 loginForm form = new loginForm();
                 form.Closed += (s, args) => this.Close();
                 form.Show();
             }
         }
         else
         {
             if (errorProvider1.GetError(emailTb) != "")
             {
                 MetroMessageBox.Show(this, "The email need to be a valid one", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
             }
             else if (errorProvider2.GetError(passTb) != "")
             {
                 MetroMessageBox.Show(this, "The password needs to contain at least 8 characters and an upper character!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
             }
         }
     }
 }
Beispiel #4
0
        private void admin_Click(object sender, EventArgs e)
        {
            loginForm ob = new loginForm(3);  //3 means showw employee form

            ob.Show();
            //this.Hide();
        }
Beispiel #5
0
        private void customer_Click(object sender, EventArgs e)
        {
            loginForm ob = new loginForm(2);  //2 means showw customer form

            ob.Show();
            //this.Hide();
        }
Beispiel #6
0
        private void kampusGym_FormClosed(object sender, FormClosedEventArgs e)
        {
            loginForm log = new loginForm();

            log.Show();
            this.Hide();
        }
        private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var login = new loginForm();

            login.MdiParent   = this;
            login.WindowState = FormWindowState.Maximized;
            login.Show();
        }
Beispiel #8
0
        private void mainForm_Load(object sender, EventArgs e)
        {
            var login = new loginForm();

            login.MdiParent   = this;
            login.WindowState = FormWindowState.Maximized;
            login.Show();
        }
Beispiel #9
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            this.Hide();
            loginForm form = new loginForm();

            form.Closed += (s, args) => this.Close();
            form.Show();
        }
Beispiel #10
0
        private void button5_Click(object sender, EventArgs e)
        {
            Hide();
            BookDAO.dbStatus = 1;
            MessageBox.Show("로그아웃 완료");
            loginForm login = new loginForm();

            login.Show();
        }
Beispiel #11
0
 private void button5_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("정말 로그아웃 하시겠습니까?", "로그아웃", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         Hide();
         MessageBox.Show("로그아웃 완료");
         loginForm login = new loginForm();
         login.Show();
     }
 }
Beispiel #12
0
        public void DeleteProfile()
        {
            db.DeleteProfile();
            this.Hide();
            loginForm lForm = new loginForm();

            lForm.Show();
            FormApp formApp = (FormApp)this.FindForm();

            formApp.Close();
            formApp.Dispose();
        }
Beispiel #13
0
        public static bool checkLogin()
        {
            if (tid != null && uid != null)
            {
                return(true);
            }
            MessageBox.Show("您还未登录,请先登录");
            loginForm lform = new loginForm();

            lform.Show();
            return(false);
        }
Beispiel #14
0
        private void metroTileItem3_Click(object sender, EventArgs e)
        {
            loginForm ob = new loginForm(2);

            ob.Show();
        }
Beispiel #15
0
        private void buy_product_Click(object sender, EventArgs e)
        {
            loginForm ob = new loginForm(2);

            ob.Show();
        }
Beispiel #16
0
        private void loginPassword_FormClosed(object sender, FormClosedEventArgs e)
        {
            loginForm lf = new loginForm();

            lf.Show();
        }
Beispiel #17
0
 private void pictureBoxLogout_Click(object sender, EventArgs e)
 {
     this.Hide();
     login.Show();
 }
 private void mainMenuButton_Click(object sender, EventArgs e)
 {
     this.Hide();
     loginForm logForm = new loginForm();
     logForm.Show();
 }