private void btnTransfer_Click(object sender, EventArgs e) { // Creates a new dialog window TransferForm dlg = new TransferForm(customer, lstAccounts.SelectedIndex); dlg.ShowDialog(); // Closes the dialog window dlg.Dispose(); }
private void btnTransfer_Click(object sender, EventArgs e) { // Creates a new dialog window TransferForm dlg = new TransferForm(customer, lstAccounts.SelectedIndex); dlg.ShowDialog(); // Closes the dialog window dlg.Dispose(); }