private void ProcessDatalog(String text) { String logname = DatalogPathname.ExtractDatalogName(text); String filename = DatalogPathname.GetCompletePathname(logname, mDirectories); if (System.IO.File.Exists(filename)) { if (String.IsNullOrEmpty(mApplication)) { Process.Start(filename); } else { Process.Start(mApplication, filename); } } else { System.Windows.Forms.MessageBox.Show( "Could not locate log.\n" + logname, "Error", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); } }
public LauncherEngine() { mSettings = new LauncherSettings(); mApplication = ""; if (!File.Exists(DatalogPathname.defaultConfig)) { DatalogPathname.CreateDefaultConfig(DatalogPathname.defaultConfig); } mDirectories = DatalogPathname.GetFolderSettings(DatalogPathname.defaultConfig); }