Exemple #1
0
        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);
            }
        }
Exemple #2
0
        public LauncherEngine()
        {
            mSettings    = new LauncherSettings();
            mApplication = "";

            if (!File.Exists(DatalogPathname.defaultConfig))
            {
                DatalogPathname.CreateDefaultConfig(DatalogPathname.defaultConfig);
            }

            mDirectories = DatalogPathname.GetFolderSettings(DatalogPathname.defaultConfig);
        }