private void tsmiOpenTextFile_Click(object sender, EventArgs e) { TextEditor cf = new TextEditor() { MdiParent = this }; if (cf.OpenFile() == DialogResult.OK) cf.Show(); }
private void tsmiNewTextFile_Click(object sender, EventArgs e) { TextEditor textEditor = new TextEditor() { MdiParent = this }; textEditor.Show(); }