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(); }
private void problemaPrincipalToolStripMenuItem_Click(object sender, EventArgs e) { frmProblemaPrincipal frmProblema = new frmProblemaPrincipal(); frmProblema.ShowDialog(); }