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