void ExecutableEdit_Click(object sender, EventArgs e) { ExecutableTool ET = new ExecutableTool(); ET.Executable = (Executable)((ToolStripMenuItem)sender).Tag; if (ET.ShowDialog() == DialogResult.OK) { SaveExecutables(); LoadScripts(); } }
void cmdAddToScriptsMenu_Click(object sender, EventArgs e) { ExecutableTool ET = new ExecutableTool(); Executable exe = new Executable(); exe.Name = "Unknown"; exe.Filename = Path.Combine(CurrentDirectory, listFiles.SelectedItems[0].Text); ET.Executable = exe; if (ET.ShowDialog() == DialogResult.OK) { Program.Executables.Add(exe); SaveExecutables(); LoadScripts(); } }