private void withdrawFundsToolStripMenuItem_Click(object sender, EventArgs e) { WithdrawFunds wf = new WithdrawFunds(); wf.Show(); this.Hide(); }
}//end of deposit menu //withdraw menu option private void withdrawFundsToolStripMenuItem_Click(object sender, EventArgs e) { Student selStudent = GetSelectedStudent(); Account selAccount = GetSelectedAccount(); if (selStudent != null) { // passing the selected student and account into the withdraw form using (WithdrawFunds wf = new WithdrawFunds(selStudent, selAccount)) { wf.ShowDialog(); this.Close(); } } else { MessageBox.Show("No Active Selection made. Please select the whole row."); } }//end of withdraw menu