Beispiel #1
0
        private void NewFile_Click(object sender, EventArgs e)
        {
            FileSelect newFile = new FileSelect();

            newFile.manager = this;
            newFile.Show();
        }
Beispiel #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;
            }
        }