private void newPatientMenuItem_TransparentPanelMouseClick(object sender, MouseEventArgs e) { NewPatientForm form = new NewPatientForm(); if (form.ShowDialog() == DialogResult.OK) { FillDataGridView(ezkoController.GetPatients()); } }
///<summary>Typically used when user clicks a button to a Program link. This method attempts to identify and execute the program based on the given programNum.</summary> public static void Execute(int programNum, Patient pat) { Program Cur = null; for (int i = 0; i < List.Length; i++) { if (List[i].ProgramNum == programNum) { Cur = List[i]; } } if (Cur == null) //no match was found { MessageBox.Show("Error, program entry not found in database."); return; } if (Cur.ProgName == "Apteryx") { Apteryx.SendData(Cur, pat); return; } else if (Cur.ProgName == "DBSWin") { DBSWin.SendData(Cur, pat); return; } else if (Cur.ProgName == "DentalEye") { DentalEye.SendData(Cur, pat); return; } else if (Cur.ProgName == "DentForms") { DentForms.SendData(Cur, pat); return; } else if (Cur.ProgName == "DentX") { DentX.SendData(Cur, pat); return; } else if (Cur.ProgName == "Dexis") { Dexis.SendData(Cur, pat); return; } else if (Cur.ProgName == "DrCeph") { DrCeph.SendData(Cur, pat); return; } else if (Cur.ProgName == "Dxis") { Dxis.SendData(Cur, pat); return; } else if (Cur.ProgName == "FloridaProbe") { FloridaProbe.SendData(Cur, pat); return; } else if (Cur.ProgName == "HouseCalls") { FormHouseCalls FormHC = new FormHouseCalls(); FormHC.ProgramCur = Cur; FormHC.ShowDialog(); return; } else if (Cur.ProgName == "ImageFX") { ImageFX.SendData(Cur, pat); return; } else if (Cur.ProgName == "Lightyear") { Lightyear.SendData(Cur, pat); return; } else if (Cur.ProgName == "MediaDent") { MediaDent.SendData(Cur, pat); return; } else if (Cur.ProgName == "NewPatientForm.com") { NewPatientForm npf = new NewPatientForm(); npf.ShowDownload(Cur.Path); //NewPatientForm.com return; } else if (Cur.ProgName == "Owandy") { Owandy.SendData(Cur, pat); return; } else if (Cur.ProgName == "PerioPal") { PerioPal.SendData(Cur, pat); return; } else if (Cur.ProgName == "Planmeca") { Planmeca.SendData(Cur, pat); return; } else if (Cur.ProgName == "Schick") { Schick.SendData(Cur, pat); return; } else if (Cur.ProgName == "Sirona") { Sirona.SendData(Cur, pat); return; } else if (Cur.ProgName == "TigerView") { TigerView.SendData(Cur, pat); return; } else if (Cur.ProgName == "Trophy") { Trophy.SendData(Cur, pat); return; } else if (Cur.ProgName == "TrophyEnhanced") { TrophyEnhanced.SendData(Cur, pat); return; } else if (Cur.ProgName == "Vipersoft") { Vipersoft.SendData(Cur, pat); return; } else if (Cur.ProgName == "VixWin") { VixWin.SendData(Cur, pat); return; } else if (Cur.ProgName == "VixWinOld") { VixWinOld.SendData(Cur, pat); return; } else if (Cur.ProgName == "XDR") { Dexis.SendData(Cur, pat); //XDR uses the Dexis protocol return; } //all remaining programs: try{ string cmdline = Cur.CommandLine; cmdline = cmdline.Replace("[PatNum]", pat.PatNum.ToString()); cmdline = cmdline.Replace("[ChartNumber]", pat.ChartNumber); string path = Cur.Path; path = path.Replace("[PatNum]", pat.PatNum.ToString()); path = path.Replace("[ChartNumber]", pat.ChartNumber); Process.Start(path, cmdline); } catch { MessageBox.Show(Cur.ProgDesc + " is not available."); return; } }
public void addNewPatient() { newPatientF = new NewPatientForm(); newPatientF.Show(); }
private void nieuwePatientToolStripMenuItem_Click(object sender, EventArgs e) { var newPatient = new NewPatientForm(doctorModel.tcpConnection); newPatient.Show(); }
private void newPatientButton_Click(object sender, RoutedEventArgs e) { var newPatientForm = new NewPatientForm(this); newPatientForm.Show(); }