private void formEmployee_FormClosing(object sender, FormClosingEventArgs e) { formLogin fLogin = new formLogin(); fLogin.refEmployee = this; fLogin.Show(); this.Close(); //bug }
// Logout Button private void btn_Logout_Click_1(object sender, EventArgs e) { formLogin fLogin = new formLogin(); fLogin.refEmployee = this; fLogin.Show(); this.Hide(); }
// - - 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(); }