Esempio n. 1
0
 private void BtnNovos_Click(object sender, System.EventArgs e)
 {
     using (var frm = new frmEscolaAdd("Escola: (Adicionar)"))
     {
         var result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             ListGeral();
         }
     }
 }
Esempio n. 2
0
        private void GridView1_DoubleClick(object sender, System.EventArgs e)
        {
            if (gridView1.SelectedRowsCount > 0)
            {
                var result = escolaViewModelsBindingSource.Current as Escola;

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