private void btnAddPoup_Click(object sender, EventArgs e) { try { Popup popup = new Popup(PROF_IT.Common.Enumerations.TypeForm.NewForm); if (popup.ShowDialog() == DialogResult.OK) { FindAll(); } } catch (System.Exception excepion1) { System.Exception thisException = excepion1; Management.ShowException(thisException); } }
private void gdvPopups_DoubleClick(object sender, EventArgs e) { try { GridView view = (GridView)sender; PopupObject popupObj = (PopupObject)view.GetRow(view.FocusedRowHandle); Popup popup = new Popup(PROF_IT.Common.Enumerations.TypeForm.PropertyForm, popupObj); popup.ShowDialog(); FindAll(); } catch (System.Exception excepion1) { System.Exception thisException = excepion1; Management.ShowException(thisException); } }