コード例 #1
0
ファイル: Tools.cs プロジェクト: slgrobotics/QuakeMap
        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);
                }
            }
        }
コード例 #2
0
 private void yesButton_Click(object sender, System.EventArgs e)
 {
     Project.RunBrowser("http://www.earthquakemap.com/update.html");
     this.Close();
     Project.Exit();
 }
コード例 #3
0
 private void yesButton_Click(object sender, System.EventArgs e)
 {
     Project.RunBrowser(Project.UPDATE_URL);
     this.Close();
     Project.Exit();
 }