Exemplo n.º 1
0
 private void BtnBuscar1_Click(object sender, EventArgs e)
 {
     using (var forms = new frmDisciplinaAdd("(Disciplina) Adicionar"))
     {
         if (forms.ShowDialog() == DialogResult.OK)
         {
             ListGeral();
         }
     }
 }
Exemplo n.º 2
0
 private void BtnNovos_Click(object sender, System.EventArgs e)
 {
     using (var frm = new frmDisciplinaAdd("Disciplina: (Adicionar)"))
     {
         var result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             ListGeral();
         }
     }
 }
Exemplo n.º 3
0
        private void GridView1_DoubleClick(object sender, System.EventArgs e)
        {
            if (gridView1.SelectedRowsCount > 0)
            {
                var result = disciplinaViewModelsBindingSource.Current as Disciplina;

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