private void txtAgendasPendentes_Click(object sender, EventArgs e) { RespostaDeAmbulancias ra = new RespostaDeAmbulancias(); ra.ShowDialog(); if (txtAgendasPendentes.Focus()) { label1.Focus(); } }
private void Reagendar_Click(object sender, EventArgs e) { DialogResult result1 = MessageBox.Show("Deseja reagendar a solicitação ?", "Atenção !", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result1 == DialogResult.Yes) { using (DAHUEEntities db = new DAHUEEntities()) { solicitacoes_paciente sp = db.solicitacoes_paciente.First(p => p.idPaciente_Solicitacoes == idPaciente); sp.Registrado = "Aguardando resposta do controle"; db.SaveChanges(); } RespostaDeAmbulancias ra = new RespostaDeAmbulancias(); this.Dispose(); ra.ShowDialog(); } }
private void txtAgendasPendentes_Click(object sender, EventArgs e) { RespostaDeAmbulancias ra = new RespostaDeAmbulancias(); ra.ShowDialog(); if (txtAgendasPendentes.Focus()) { label1.Focus(); } }
private void AgendaPendentes_Click(object sender, EventArgs e) { RespostaDeAmbulancias ra = new RespostaDeAmbulancias(); ra.ShowDialog(); }
private void AgendaPendentes_Click(object sender, EventArgs e) { RespostaDeAmbulancias ra = new RespostaDeAmbulancias(); ra.ShowDialog(); }
private void Reagendar_Click(object sender, EventArgs e) { DialogResult result1 = MessageBox.Show("Deseja reagendar a solicitação ?", "Atenção !", MessageBoxButtons.YesNo, MessageBoxIcon.Question); if (result1 == DialogResult.Yes) { using(DAHUEEntities db = new DAHUEEntities()) { solicitacoes_paciente sp = db.solicitacoes_paciente.First(p => p.idPaciente_Solicitacoes == idPaciente); sp.Registrado = "Aguardando resposta do controle"; db.SaveChanges(); } RespostaDeAmbulancias ra = new RespostaDeAmbulancias(); this.Dispose(); ra.ShowDialog(); } }