private void gridProgram_CellDoubleClick(object sender, ODGridClickEventArgs e) { DialogResult dResult = DialogResult.None; Program program = _listPrograms[gridProgram.GetSelectedIndex()].Copy(); switch (program.ProgName) { case "UAppoint": FormUAppoint FormU = new FormUAppoint(); FormU.ProgramCur = program; dResult = FormU.ShowDialog(); break; case "eClinicalWorks": if (!Security.IsAuthorized(Permissions.SecurityAdmin)) { break; } FormEClinicalWorks FormECW = new FormEClinicalWorks(); FormECW.ProgramCur = program; dResult = FormECW.ShowDialog(); break; case "eRx": FormErxSetup FormES = new FormErxSetup(); dResult = FormES.ShowDialog(); break; case "Mountainside": FormMountainside FormM = new FormMountainside(); FormM.ProgramCur = program; dResult = FormM.ShowDialog(); break; case "PayConnect": FormPayConnectSetup fpcs = new FormPayConnectSetup(); dResult = fpcs.ShowDialog(); break; case "Podium": FormPodiumSetup FormPS = new FormPodiumSetup(); dResult = FormPS.ShowDialog(); break; case "Xcharge": FormXchargeSetup fxcs = new FormXchargeSetup(); dResult = fxcs.ShowDialog(); break; case "FHIR": FormFHIRSetup FormFS = new FormFHIRSetup(); dResult = FormFS.ShowDialog(); break; case "Transworld": FormTransworldSetup FormTs = new FormTransworldSetup(); dResult = FormTs.ShowDialog(); break; case "PaySimple": FormPaySimpleSetup formPS = new FormPaySimpleSetup(); dResult = formPS.ShowDialog(); break; default: FormProgramLinkEdit FormPE = new FormProgramLinkEdit(); if (Programs.IsStatic(program)) { FormPE.AllowToolbarChanges = false; } FormPE.ProgramCur = program; dResult = FormPE.ShowDialog(); break; } if (dResult == DialogResult.OK) { changed = true; FillList(); } }
private void listProgram_DoubleClick(object sender, System.EventArgs e) { if (listProgram.SelectedIndex == -1) { return; } Program program = ProgramC.Listt[listProgram.SelectedIndex].Copy(); if (program.ProgName == "UAppoint") { FormUAppoint FormU = new FormUAppoint(); FormU.ProgramCur = program; FormU.ShowDialog(); if (FormU.DialogResult == DialogResult.OK) { changed = true; FillList(); } return; } if (program.ProgName == "eClinicalWorks") { if (!Security.IsAuthorized(Permissions.SecurityAdmin)) { return; } FormEClinicalWorks FormECW = new FormEClinicalWorks(); FormECW.ProgramCur = program; FormECW.ShowDialog(); if (FormECW.DialogResult == DialogResult.OK) { changed = true; FillList(); } return; } if (program.ProgName == "Mountainside") { FormMountainside FormM = new FormMountainside(); FormM.ProgramCur = program; FormM.ShowDialog(); if (FormM.DialogResult == DialogResult.OK) { changed = true; FillList(); } return; } if (program.ProgName == "PayConnect") { FormPayConnectSetup fpcs = new FormPayConnectSetup(); fpcs.ShowDialog(); if (fpcs.DialogResult == DialogResult.OK) { changed = true; FillList(); } return; } if (program.ProgName == "Xcharge") { FormXchargeSetup fxcs = new FormXchargeSetup(); fxcs.ShowDialog(); if (fxcs.DialogResult == DialogResult.OK) { changed = true; FillList(); } return; } FormProgramLinkEdit FormPE = new FormProgramLinkEdit(); FormPE.ProgramCur = program; FormPE.ShowDialog(); changed = true; FillList(); }
private void listProgram_DoubleClick(object sender, System.EventArgs e) { if(listProgram.SelectedIndex==-1){ return; } Program program=ProgramC.Listt[listProgram.SelectedIndex].Copy(); if(program.ProgName=="UAppoint"){ FormUAppoint FormU=new FormUAppoint(); FormU.ProgramCur=program; FormU.ShowDialog(); if(FormU.DialogResult==DialogResult.OK){ changed=true; FillList(); } return; } if(program.ProgName=="eClinicalWorks") { if(!Security.IsAuthorized(Permissions.SecurityAdmin)) { return; } FormEClinicalWorks FormECW=new FormEClinicalWorks(); FormECW.ProgramCur=program; FormECW.ShowDialog(); if(FormECW.DialogResult==DialogResult.OK) { changed=true; FillList(); } return; } if(program.ProgName=="Mountainside") { FormMountainside FormM=new FormMountainside(); FormM.ProgramCur=program; FormM.ShowDialog(); if(FormM.DialogResult==DialogResult.OK) { changed=true; FillList(); } return; } if(program.ProgName=="PayConnect") { FormPayConnectSetup fpcs=new FormPayConnectSetup(); fpcs.ShowDialog(); if(fpcs.DialogResult==DialogResult.OK) { changed=true; FillList(); } return; } if(program.ProgName=="Xcharge") { FormXchargeSetup fxcs=new FormXchargeSetup(); fxcs.ShowDialog(); if(fxcs.DialogResult==DialogResult.OK) { changed=true; FillList(); } return; } FormProgramLinkEdit FormPE=new FormProgramLinkEdit(); FormPE.ProgramCur=program; FormPE.ShowDialog(); changed=true; FillList(); }