private void back_Click(object sender, EventArgs e) { this.Hide(); AccountantDashboard eD = new AccountantDashboard(); eD.ShowDialog(); this.Close(); }
private void AdminLogin_Click(object sender, EventArgs e) { Accountant.loginAccountant(adminName.Text.Trim(), AdminPass.Text.Trim()); if (showForm == true) { this.Hide(); AccountantDashboard aD = new AccountantDashboard(); aD.ShowDialog(); this.Close(); } }