Пример #1
0
        private void btn_back_Click(object sender, EventArgs e)
        {
            this.Close();
            Home_Form home = new Home_Form();

            home.Show();
        }
Пример #2
0
        // timer for clicking login button, if successful will take user to main content page
        private void timer_login_Tick(object sender, EventArgs e)
        {
            this.Hide();
            Home_Form home = new Home_Form();

            home.Show();
            timer_login.Enabled = false;

            // clear controls
            textBox_username.Text = null;
            textBox_password.Text = null;
            label_welcome.Hide();
            metro_spinner.Hide();
            btn_exit.Show();
        }