예제 #1
0
        private void NewProgram_Click(object sender, EventArgs e)
        {
            ProgramSelect newProg = new ProgramSelect();

            newProg.manager = this;
            newProg.Show();
        }
예제 #2
0
        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;
            }
        }