private void openScriptMenuItem_Activate(object sender, EventArgs e) { if (this.openFileDialog.ShowDialog(this) != DialogResult.OK) { return; } CodeDocument codeDocument = this.CreateDocument(); codeDocument.LoadFile(this.openFileDialog.FileName); codeDocument.Open(); }
private void newFileMenuItem_Activate(object sender, EventArgs e) { CodeDocument codeDocument = this.CreateDocument(); codeDocument.Open(); }