private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { if (table.Rows[e.Row]["DocNum"].ToString() != "0") { long docNum = PIn.Long(table.Rows[e.Row]["DocNum"].ToString()); GotoModule.GotoImage(PatNum, docNum); return; } //Sheets long sheetNum = PIn.Long(table.Rows[e.Row]["SheetNum"].ToString()); Sheet sheet = Sheets.GetSheet(sheetNum); FormSheetFillEdit.ShowForm(sheet, FormSheetFillEdit_FormClosing); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { //Images //Hold onto docNum so Image module refresh persists selection when closing FormPatientForms. DocNum = PIn.Long(table.Rows[e.Row]["DocNum"].ToString()); //Set to 0 if not a Document, i.e. a Sheet. if (DocNum != 0) { GotoModule.GotoImage(PatNum, DocNum); return; } //Sheets long sheetNum = PIn.Long(table.Rows[e.Row]["SheetNum"].ToString()); Sheet sheet = Sheets.GetSheet(sheetNum); FormSheetFillEdit.ShowForm(sheet, FormSheetFillEdit_FormClosing); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { if (table.Rows[e.Row]["DocNum"].ToString() != "0") { long docNum = PIn.Long(table.Rows[e.Row]["DocNum"].ToString()); GotoModule.GotoImage(PatNum, docNum); return; } //Sheets long sheetNum = PIn.Long(table.Rows[e.Row]["SheetNum"].ToString()); Sheet sheet = Sheets.GetSheet(sheetNum); FormSheetFillEdit FormSF = new FormSheetFillEdit(sheet); FormSF.ShowDialog(); if (FormSF.DialogResult == DialogResult.OK) { FillGrid(); } }