private void butCopy2_Click(object sender, EventArgs e) { //This button is not enabled unless user has appropriate permission for setup. if (grid2.GetSelectedIndex() == -1) { MsgBox.Show(this, "Please select a sheet from the list above first."); return; } SheetDef sheetdef = grid2.SelectedTag <SheetDef>(); sheetdef.Description = sheetdef.Description + "2"; SheetDefs.GetFieldsAndParameters(sheetdef); sheetdef.IsNew = true; SheetDefs.InsertOrUpdate(sheetdef, isOldSheetDuplicate: sheetdef.DateTCreated.Year < 1880); FillGrid2(sheetdef.SheetDefNum); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { SelectedLabCaseNum = gridMain.SelectedTag <LabCase>().LabCaseNum; DialogResult = DialogResult.OK; }