本文整理汇总了C#中OpenDental.UI.ODGridClickEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# ODGridClickEventArgs类的具体用法?C# ODGridClickEventArgs怎么用?C# ODGridClickEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ODGridClickEventArgs类属于OpenDental.UI命名空间,在下文中一共展示了ODGridClickEventArgs类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: gridMain_CellLeave
private void gridMain_CellLeave(object sender,ODGridClickEventArgs e) {
/*
Table.Rows[e.Row][e.Col]=gridMain.Rows[e.Row].Cells[e.Col].Text;
Point cellSelected=new Point(gridMain.SelectedCell.X,gridMain.SelectedCell.Y);
FillGrid();//gridMain.SelectedCell gets cleared.
gridMain.SetSelected(cellSelected);*/
}
示例2: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
if(IsSelectionMode) {
SelectedLoinc=listLoincSearch[e.Row];
DialogResult=DialogResult.OK;
}
//Nothing to do if not selection mode
}
示例3: gridEdu_CellDoubleClick
private void gridEdu_CellDoubleClick(object sender,ODGridClickEventArgs e)
{
FormEduResourceEdit FormERE = new FormEduResourceEdit();
FormERE.EduResourceCur=eduResourceList[e.Row];
FormERE.ShowDialog();
FillGrid();
}
示例4: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
EhrProvKey keycur=_listKeys[e.Row];
keycur.IsNew=false;
FormEhrProviderKeyEdit formE=new FormEhrProviderKeyEdit(keycur);
formE.ShowDialog();
FillGrid();
}
示例5: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e)
{
FormCentralConnectionEdit formC = new FormCentralConnectionEdit();
formC.CentralConnectionCur=ConnList[e.Row];
formC.ShowDialog();
FillGrid();
}
示例6: gridMain_CellLeave
private void gridMain_CellLeave(object sender,ODGridClickEventArgs e) {
//Save data from grid into table. No call to DB, so this should be safe.
for(int i=0;i<gridMain.Rows.Count;i++) {
TableItem.Rows[0][i+1]=gridMain.Rows[i].Cells[1].Text.Replace("\r\n","\n").Replace("\n","\r\n");//Column 0 of TableItems.Rows[0] is in the title bar, so it is off from the grid by 1.
}
//FillGrid();//Causes errors with tabbing between cells. We put the PK in the title bar to fix this (now it doesn't need to be refreshed).
}
示例7: gridEdu_CellClick
private void gridEdu_CellClick(object sender,ODGridClickEventArgs e) {
if(e.Col!=1) {
return;
}
bool didPrint = false;
try {
FormEhrEduBrowser FormEDUB = new FormEhrEduBrowser(eduResourceList[e.Row].ResourceUrl);
FormEDUB.ShowDialog();
didPrint = FormEDUB.DidPrint;
//System.Diagnostics.Process.Start(eduResourceList[e.Row].ResourceUrl);
}
catch {
MessageBox.Show("Link not found.");
return;
}
if(didPrint) {
EhrMeasureEvent newMeasureEvent = new EhrMeasureEvent();
newMeasureEvent.DateTEvent=DateTime.Now;
newMeasureEvent.EventType=EhrMeasureEventType.EducationProvided;
newMeasureEvent.PatNum=patCur.PatNum;
newMeasureEvent.MoreInfo=eduResourceList[e.Row].ResourceUrl;
EhrMeasureEvents.Insert(newMeasureEvent);
FillGridProvided();
}
}
示例8: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
FormEhrMeasureEventEdit FormEMEE=new FormEhrMeasureEventEdit(_listEhrMeasureEvents[e.Row]);
FormEMEE.ShowDialog();
if(FormEMEE.DialogResult==DialogResult.OK) {
FillGrid();
}
}
示例9: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
InputBox editWord=new InputBox("Edit word");
DictCustom origWord=DictCustoms.Listt[e.Row];
editWord.textResult.Text=origWord.WordText;
if(editWord.ShowDialog()!=DialogResult.OK) {
return;
}
if(editWord.textResult.Text==origWord.WordText) {
return;
}
if(editWord.textResult.Text=="") {
DictCustoms.Delete(origWord.DictCustomNum);
DataValid.SetInvalid(InvalidType.DictCustoms);
FillGrid();
return;
}
string newWord=Regex.Replace(editWord.textResult.Text,"[\\s]|[\\p{P}\\p{S}-['-]]","");//don't allow words with spaces or punctuation except ' and - in them
for(int i=0;i<DictCustoms.Listt.Count;i++) {//Make sure it's not already in the custom list
if(DictCustoms.Listt[i].WordText==newWord) {
MsgBox.Show(this,"The word "+newWord+" is already in the custom word list.");
editWord.textResult.Text=origWord.WordText;
return;
}
}
origWord.WordText=newWord;
DictCustoms.Update(origWord);
DataValid.SetInvalid(InvalidType.DictCustoms);
FillGrid();
}
示例10: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
FormHL7DefSegmentEdit FormS=new FormHL7DefSegmentEdit();
FormS.HL7DefSegCur=HL7DefMesCur.hl7DefSegments[e.Row];
FormS.IsHL7DefInternal=IsHL7DefInternal;
FormS.ShowDialog();
FillGrid();
}
示例11: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
LabPanel panel=listPanels[e.Row];
FormEhrLabPanelEdit formPE=new FormEhrLabPanelEdit();
formPE.PanelCur=panel;
formPE.ShowDialog();
FillGrid();
}
示例12: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
if(IsSelectionMode) {
SelectedCvx=(Cvx)gridMain.Rows[e.Row].Tag;
DialogResult=DialogResult.OK;
return;
}
}
示例13: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e)
{
FormPopupEdit FormPE=new FormPopupEdit();
FormPE.PopupCur=PopupList[e.Row];
FormPE.ShowDialog();
FillGrid();
}
示例14: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
FormSupplierEdit FormS=new FormSupplierEdit();
FormS.Supp=listSuppliers[e.Row];
FormS.ShowDialog();
if(FormS.DialogResult==DialogResult.OK) {
FillGrid();
}
}
示例15: gridMain_CellDoubleClick
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
FormEhrQuarterlyKeyEdit formE=new FormEhrQuarterlyKeyEdit();
EhrQuarterlyKey keycur=listKeys[e.Row];
keycur.IsNew=false;
formE.KeyCur=keycur;
formE.ShowDialog();
FillGrid();
}