private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormPopupEdit FormPE = new FormPopupEdit(); FormPE.PopupCur = PopupList[e.Row]; FormPE.ShowDialog(); FillGrid(); }
private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormPopupEdit FormPE=new FormPopupEdit(); FormPE.PopupCur=PopupList[e.Row]; FormPE.ShowDialog(); if(FormPE.DialogResult==DialogResult.OK) { FillGrid(); } }
private void gridPopupAudit_CellDoubleClick(object sender,ODGridClickEventArgs e) { FormPopupEdit FormPE=new FormPopupEdit(); FormPE.PopupAudit=PopupCur; DateTime dateLastEdit=DateTime.MinValue; if(e.Row > 0 && ListPopupAud[e.Row-1].DateTimeEntry.Year > 1880) { FormPE.DateLastEdit=ListPopupAud[e.Row-1].DateTimeEntry; } FormPE.PopupCur=ListPopupAud[e.Row]; FormPE.ShowDialog(); }
private void butAdd_Click(object sender,EventArgs e) { FormPopupEdit FormPE=new FormPopupEdit(); Popup popup=new Popup(); popup.PatNum=PatCur.PatNum; popup.PopupLevel=EnumPopupLevel.Patient; popup.IsNew=true; FormPE.PopupCur=popup; FormPE.ShowDialog(); FillGrid(); }
private void butAdd_Click(object sender, EventArgs e) { FormPopupEdit FormPE = new FormPopupEdit(); Popup popup = new Popup(); popup.PatNum = PatCur.PatNum; popup.PopupLevel = EnumPopupLevel.Patient; popup.IsNew = true; FormPE.PopupCur = popup; FormPE.ShowDialog(); FillGrid(); }
private void gridPopupAudit_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormPopupEdit FormPE = new FormPopupEdit(); FormPE.PopupAudit = PopupCur; DateTime dateLastEdit = DateTime.MinValue; if (e.Row > 0 && ListPopupAud[e.Row - 1].DateTimeEntry.Year > 1880) { FormPE.DateLastEdit = ListPopupAud[e.Row - 1].DateTimeEntry; } FormPE.PopupCur = ListPopupAud[e.Row]; FormPE.ShowDialog(); }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { if (((Popup)gridMain.ListGridRows[e.Row].Tag).PopupLevel == EnumPopupLevel.Automation) { MsgBox.Show(this, "To edit automations go to Setup | Automation"); } else { FormPopupEdit FormPE = new FormPopupEdit(); FormPE.PopupCur = (Popup)gridMain.ListGridRows[e.Row].Tag; FormPE.ShowDialog(); if (FormPE.DialogResult == DialogResult.OK) { FillGrid(); } } }