Esempio n. 1
0
 private void EditSelectedScript()
 {
     try
     {
         ScriptOpener.EditScript(this.SelectedScriptPath);
     }
     catch (Exception ex)
     {
         ShowError(ex);
     }
 }
Esempio n. 2
0
 private void RunSelectedScript(bool asAdmin)
 {
     try
     {
         ScriptOpener.RunScript(this.SelectedScriptPath, asAdmin);
     }
     catch (Exception ex)
     {
         ShowError(ex);
     }
 }
Esempio n. 3
0
 private void openExtensionHandlesFileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         ScriptOpener.OpenExtensionHandlerConfigFile();
     }
     catch (Exception ex)
     {
         ShowError(ex);
     }
 }
Esempio n. 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());
        }
Esempio n. 5
0
 private void refreshToolStripMenuItem_Click(object sender, EventArgs e)
 {
     this.LoadScripts();
     ScriptOpener.Init();
 }