예제 #1
0
        private void picProblema_Click(object sender, EventArgs e)
        {
            frmProblemaPrincipal frmProblema = new frmProblemaPrincipal(Convert.ToInt32(cmbTipoReclamacao.SelectedValue));

            frmProblema.ShowDialog();

            Modelo.SGAPContexto contexto = new Modelo.SGAPContexto();
            int id = Convert.ToInt32(cmbTipoReclamacao.SelectedValue.ToString());

            cmbProblema.DataSource = contexto.ProblemaPrincipal.ToList().Where(p => p.TipoReclamacao.id == id).OrderBy(p => p.descricao).ToList();
        }
예제 #2
0
        private void problemaPrincipalToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmProblemaPrincipal frmProblema = new frmProblemaPrincipal();

            frmProblema.ShowDialog();
        }