private void NewProgram_Click(object sender, EventArgs e) { ProgramSelect newProg = new ProgramSelect(); newProg.manager = this; newProg.Show(); }
void launchEditor(string type) { switch (type) { case "program": ProgramSelect newProg = new ProgramSelect(); newProg.manager = this; newProg.Show(); break; case "command": CommandSelect newCom = new CommandSelect(); newCom.manager = this; newCom.Show(); break; case "file": FileSelect newFile = new FileSelect(); newFile.manager = this; newFile.Show(); break; } }