예제 #1
0
 private void newToolStripMenuItem_Click(object sender, EventArgs e)
 {
     MDIChildForm MDIChild = new MDIChildForm();
     MDIChild.MdiParent = this;
     MDIChild.Text = newDocumentText + this.MdiChildren.Length.ToString();
     MDIChild.Show();
 }
예제 #2
0
 private void openFileDialog_FileOk(object sender, CancelEventArgs e)
 {
     MDIChildForm MDIChild = new MDIChildForm();
     MDIChild.MdiParent = this;
     MDIChild.Editor.LoadFile(openFileDialog.FileName);
     MDIChild.FileName = openFileDialog.FileName;
     MDIChild.Show();
 }