Example #1
0
 private void EditSelectedScript()
 {
     try
     {
         ScriptOpener.EditScript(this.SelectedScriptPath);
     }
     catch (Exception ex)
     {
         ShowError(ex);
     }
 }
Example #2
0
 private void RunSelectedScript(bool asAdmin)
 {
     try
     {
         ScriptOpener.RunScript(this.SelectedScriptPath, asAdmin);
     }
     catch (Exception ex)
     {
         ShowError(ex);
     }
 }
Example #3
0
 private void openExtensionHandlesFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         ScriptOpener.OpenExtensionHandlerConfigFile();
     }
     catch (Exception ex)
     {
         ShowError(ex);
     }
 }
Example #4
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            if (string.IsNullOrEmpty(Program.ScriptFolder))
            {
                MessageBox.Show("Please set the Script folder in the config file first.");
                return;
            }


            ScriptOpener.Init();

            Application.Run(new MainForm());
        }
Example #5
0
 private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.LoadScripts();
     ScriptOpener.Init();
 }