private void btnAddMaterial_Click(object sender, EventArgs e) { try { Material material = new Material(PROF_IT.Common.Enumerations.TypeForm.NewForm); if (material.ShowDialog() == DialogResult.OK) { FindAll(); } } catch (System.Exception exception1) { System.Exception thisException = exception1; Management.ShowException(thisException); } }
private void gdvMaterial_DoubleClick(object sender, EventArgs e) { try { GridView view = (GridView)sender; MaterialObject materialObj = (MaterialObject)view.GetRow(view.FocusedRowHandle); Material material = new Material(PROF_IT.Common.Enumerations.TypeForm.PropertyForm, materialObj); material.ShowDialog(); FindAll(); } catch (System.Exception excepion1) { System.Exception thisException = excepion1; Management.ShowException(thisException); } }