Ejemplo n.º 1
0
 private void BtnNovos_Click(object sender, System.EventArgs e)
 {
     using (var frm = new frmProfessorDisciplinaAdd("Professor Disciplina: (Adicionar)"))
     {
         var result = frm.ShowDialog();
         if (result == DialogResult.OK)
         {
             ListGeral();
         }
     }
 }
Ejemplo n.º 2
0
        private async void GridView1_DoubleClick(object sender, System.EventArgs e)
        {
            if (gridView1.SelectedRowsCount > 0)
            {
                var result = professorDisciplinaViewModelsBindingSource.Current as Professor_Disciplina;

                if (result != null)
                {
                    var returResult = await ProfessorDisciplinaControllers.GetInstacia().GetList(result.ProfessorID);

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