Ejemplo n.º 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();
 }
Ejemplo n.º 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();
            }
        }