Esempio n. 1
0
        private void metroTile5_Click(object sender, EventArgs e)
        {
            userTreasuryManager form = new userTreasuryManager();

            form.Show(this);
            this.Hide();
        }
Esempio n. 2
0
 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);
     }
 }