Beispiel #1
0
 private void RunEpiInfo()
 {
     if (!String.IsNullOrEmpty(BaseSettings.EpiInfoPath) && File.Exists(BaseSettings.EpiInfoPath))
     {
         try
         {
             var pi         = new ProcessStartInfo(BaseSettings.EpiInfoPath);
             var epiInfoDir = Path.GetDirectoryName(BaseSettings.EpiInfoPath);
             if (epiInfoDir != null)
             {
                 pi.WorkingDirectory = epiInfoDir;
             }
             Process.Start(pi);
         }
         catch (Exception e)
         {
             ErrorForm.ShowError("errEpiInfoLaunch", "Error during launching Epi Info.", e);
         }
     }
     else
     {
         ErrorForm.ShowWarningFormat("msgInvalidEpiInfoPath", "Wrong path to EPI Info in configuration file <{0}>.", BaseSettings.EpiInfoPath);
     }
 }