private void gdvSubTypes_DoubleClick(object sender, EventArgs e) { try { GridView view = (GridView)sender; MaterialSubTypeObject obj = (MaterialSubTypeObject)view.GetRow(view.FocusedRowHandle); TIS.Client.Material.MaterialCateogry materialCategory = new TIS.Client.Material.MaterialCateogry(PROF_IT.Common.Enumerations.TypeForm.PropertyForm, obj); if (materialCategory.ShowDialog() == System.Windows.Forms.DialogResult.OK) { obj.State = PROF_IT.Common.Enumerations.ObjectState.Modified; } } catch (System.Exception excepion1) { System.Exception thisException = excepion1; Management.ShowException(thisException); } }
private void gdvType_DoubleClick(object sender, EventArgs e) { try { GridView view = (GridView)sender; MaterialTypeObject obj = (MaterialTypeObject)view.GetRow(view.FocusedRowHandle); TIS.Client.Material.MaterialCateogry materialCategory = new TIS.Client.Material.MaterialCateogry(PROF_IT.Common.Enumerations.TypeForm.PropertyForm, obj); if (materialCategory.ShowDialog() == System.Windows.Forms.DialogResult.OK) { obj.State = PROF_IT.Common.Enumerations.ObjectState.Modified; } } catch (System.Exception excepion1) { System.Exception thisException = excepion1; Management.ShowException(thisException); } }