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