private void metroTile10_Click(object sender, EventArgs e) { userBankManager form = new userBankManager(); form.Show(this); this.Hide(); }
private void showPropertiesButton_Click(object sender, EventArgs e) { if (privileges.SelectedValue == null) { MessageBox.Show("Please Select a Privilege"); return; } Hide(); if (privileges.SelectedValue.ToString() == "Bank Manager") { userBankManager BM = new userBankManager(); BM.Show(this); } else if (privileges.SelectedValue.ToString() == "Credit Manager") { userCreditManager CM = new userCreditManager(); CM.Show(this); } else if (privileges.SelectedValue.ToString() == "Inventory Manager") { userInventoryManager IM = new userInventoryManager(); IM.Show(this); } else if (privileges.SelectedValue.ToString() == "Sales Manager") { userSalesMan SM = new userSalesMan(); SM.Show(this); } else if (privileges.SelectedValue.ToString() == "Treasury Manager") { userTreasuryManager TM = new userTreasuryManager(); TM.Show(this); } }