Пример #1
0
 private void tsmiOpenTextFile_Click(object sender, EventArgs e)
 {
     TextEditor cf = new TextEditor() { MdiParent = this };
     if (cf.OpenFile() == DialogResult.OK) cf.Show();
 }
Пример #2
0
 private void tsmiNewTextFile_Click(object sender, EventArgs e)
 {
     TextEditor textEditor = new TextEditor() { MdiParent = this };
     textEditor.Show();
 }