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