private void accounting_button_Click(object sender, EventArgs e) { if (LoginForm.x == "Accountant" || LoginForm.x == "Manager") { Forms.AccountForm accounting = new Forms.AccountForm(); accounting.Show(); } else { MessageBox.Show("Form Access Denied"); } }
private void toolStripLabel8_Click(object sender, EventArgs e) { Forms.AccountForm salesdata = new Forms.AccountForm(); salesdata.Show(); }