예제 #1
0
 private void BtnNovos_Click(object sender, System.EventArgs e)
 {
     using (var frm = new frmAlunosAdd("Alunos: (Adicionar)"))
     {
         var result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             ListGeral();
         }
     }
 }
예제 #2
0
        private void GridView1_DoubleClick(object sender, System.EventArgs e)
        {
            if (gridView1.SelectedRowsCount > 0)
            {
                var result = alunosBindingSource.Current as Alunos;

                using (var forms = new frmAlunosAdd("(Alunos) Adicionar", result ?? null))
                {
                    if (forms.ShowDialog() == DialogResult.OK)
                    {
                        ListGeral();
                    }
                }
            }
        }