Esempio n. 1
0
        private void Press_button_Click(object sender, EventArgs e)
        {
            startForm start = new startForm();

            this.Hide();
            start.Show();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            startForm startF = new startForm();

            this.Hide();
            startF.Show();
        }
Esempio n. 3
0
        public void loginButton_Click(object sender, EventArgs e)
        {
            string username = usernameTextBox.Text;

            if (usernameTextBox.Text.Length != 0)
            {
                if (authentication())
                {
                    identity();
                    this.Hide();
                    startForm start = new startForm(username);
                    start.Show();
                    start.activate();
                    if (is_admin == 1)
                    {
                        start.admin();
                    }
                }
            }
            else
            {
                MessageBox.Show("empty fields");
            }
        }