private void dg_head_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyData == Keys.Enter)
            {
                e.Handled = true;
                e.SuppressKeyPress = true;

                if (dg_head.SelectedRows.Count == 1)
                {
                    int Id = int.Parse(dg_head.SelectedRows[0].Cells["Id"].EditedFormattedValue.ToString());
                    Frm_LoanApplication F = new Frm_LoanApplication();
                    F.Show();
                    F.FillData(Id);
                }
            }
        }
Esempio n. 2
0
 private void loanApplicationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Frm_LoanApplication F = new Frm_LoanApplication();
     F.Show();
 }