private void btnPerson_Click(object sender, EventArgs e) { frmSchedulePerson frm = new frmSchedulePerson("", "New", ""); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { // Refrescar grilla btnFilter_Click(sender, e); } }
private void mnuReagendarCita_Click(object sender, EventArgs e) { string strCalendarId = grdDataCalendar.Selected.Rows[0].Cells[0].Value.ToString(); string strProtocolId = grdDataCalendar.Selected.Rows[0].Cells[12].Value.ToString(); DialogResult Result = MessageBox.Show("¿Está seguro de REAGENDAR este registro?", "ADVERTENCIA!", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (Result == System.Windows.Forms.DialogResult.Yes) { frmSchedulePerson frm = new frmSchedulePerson(strCalendarId, "Reschedule", strProtocolId); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { // Refrescar grilla btnFilter_Click(sender, e); } } }