Example #1
0
        public void run(double lat, double lon, string name, string guid)
        {
            string args = substituteArgs(lat, lon, name, guid);

            LibSys.StatusBar.Trace("Run Tool: '" + this.executablePath + "'  args: '" + args + "'");
            if (this.executablePath == null)
            {
                Project.RunBrowser("\"" + args + "\"");
            }
            else
            {
                if (File.Exists(executablePath))
                {
                    System.Diagnostics.ProcessStartInfo pInfo = new ProcessStartInfo(executablePath, args);

                    Process p = new Process();
                    p.StartInfo = pInfo;
                    p.Start();
                }
                else
                {
                    Project.ErrorBox(null, "Could not find file " + executablePath + "\n\nInstall the Tool, or use \"Tools-->Manage\" and correct the Executable for " + this.displayName);
                }
            }
        }
 private void yesButton_Click(object sender, System.EventArgs e)
 {
     Project.RunBrowser("http://www.earthquakemap.com/update.html");
     this.Close();
     Project.Exit();
 }
 private void yesButton_Click(object sender, System.EventArgs e)
 {
     Project.RunBrowser(Project.UPDATE_URL);
     this.Close();
     Project.Exit();
 }