private void NewCommand_Click(object sender, EventArgs e) { CommandSelect newCom = new CommandSelect(); newCom.manager = this; newCom.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; } }