Exemple #1
0
        private void transferFundsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TransferFunds tf = new TransferFunds();

            tf.Show();
            this.Hide();
        }
Exemple #2
0
        }//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