示例#1
0
        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();
        }
示例#2
0
        private void newFileMenuItem_Activate(object sender, EventArgs e)
        {
            CodeDocument codeDocument = this.CreateDocument();

            codeDocument.Open();
        }