Пример #1
0
 private void tsmiNewRichTextFile_Click(object sender, EventArgs e)
 {
     RichTextSource sourceEditor = new RichTextSource() { MdiParent = this };
     RichTextEditor rtfEditor = new RichTextEditor() { MdiParent = this, SourceViewer = sourceEditor };
     sourceEditor.Show();
     rtfEditor.Show();
 }
Пример #2
0
        private void tsmiOpenRichTextFile_Click(object sender, EventArgs e)
        {
            RichTextSource sourceEditor = new RichTextSource() { MdiParent = this };
            RichTextEditor rtfEditor = new RichTextEditor() { MdiParent = this, SourceViewer = sourceEditor };

            if (rtfEditor.OpenFile() == DialogResult.OK)
            {
                sourceEditor.Show();
                rtfEditor.Show();
            }
        }