private void btnEdit_Click(object sender, EventArgs e) { frmServiceOrderEdit frm = new frmServiceOrderEdit(_ServiceOrderId, _ProtocolId, "Edit"); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { // Refrescar grilla btnFilter_Click(sender, e); } }
private void btnNew_Click(object sender, EventArgs e) { frmServiceOrderEdit frm = new frmServiceOrderEdit("0", "", "New"); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { // Refrescar grilla btnFilter_Click(sender, e); } }