示例#1
0
        private void formEmployee_FormClosing(object sender, FormClosingEventArgs e)
        {
            formLogin fLogin = new formLogin();

            fLogin.refEmployee = this;
            fLogin.Show();
            this.Close(); //bug
        }
示例#2
0
        // Logout Button
        private void btn_Logout_Click_1(object sender, EventArgs e)
        {
            formLogin fLogin = new formLogin();

            fLogin.refEmployee = this;
            fLogin.Show();
            this.Hide();
        }
示例#3
0
        // - - goes back to login screen - -
        private void btn_Logout_Click(object sender, EventArgs e)
        {
            formLogin refLogin = new formLogin();

            refLogin.refInventory = this;
            refLogin.Show();
            this.Close();
        }
        private void formSupplier_FormClosing(object sender, FormClosingEventArgs e)
        {
            formLogin fLogin = new formLogin();

            fLogin.refSupplier = this;
            fLogin.Show();
            this.Close(); // bug
        }
        private void btn_Logout_Click(object sender, EventArgs e)
        {
            formLogin fLogin = new formLogin();

            fLogin.refSupplier = this;
            fLogin.Show();
            this.Hide();
        }
        // - - When user wants to close window - -
        private void formAdminHome_FormClosing(object sender, FormClosingEventArgs e)
        {
            formLogin fLogin = new formLogin();

            fLogin.refAdminHome = this;
            fLogin.Show();
            this.Close();
        }