private void btnBuySell_Click(object sender, EventArgs e)
 {
     if (!_bankMode)
     {
         MaintShareTrans newShareTrans = new MaintShareTrans();
         newShareTrans.ShowDialog();
         DisplayData();
     }
     else
     {
         if (selectedCorp != null)
         {
             MaintBankAccount bankAccount = new MaintBankAccount(selectedCorp);
             bankAccount.ShowDialog();
             DisplayData();
         }
     }
 }
 private void btnHistory_Click(object sender, EventArgs e)
 {
     if (!_bankMode)
     {
         ListShareTransactions shareTrans = new ListShareTransactions(selectedCorp);
         shareTrans.ShowDialog();
         DisplayData();
     }
     else
     {
         MaintBankAccount bankAccount = new MaintBankAccount(null);
         bankAccount.ShowDialog();
         DisplayData();
     }
 }