public OfficeConsole(OfficeConsole.Mode mode) { this.mode = mode; OfficeConsole.officeConsole = this; switch (mode) { case Mode.InternetExplorer: this.ie = new InternetExplorer(); this.control = this.ie; this.ie.start(); break; case Mode.Word: this.word = new Word(); this.control = this.word; this.word.start(); break; case Mode.PowerPoint: this.powerpoint = new PowerPoint(); this.control = this.powerpoint; this.powerpoint.start(); break; case Mode.Excel: this.excel = new Excel(); this.control = this.excel; this.excel.start(); break; default: Application.Exit(); break; } //readThread = new Thread(new ParameterizedThreadStart(this.reader)); //readThread.Start(); }