예제 #1
0
 public MainForm(string filename)
 {
     InitializeComponent();
     DocumentForm childForm = new DocumentForm(filename);
     childForm.MdiParent = this;
     childForm.WindowState = FormWindowState.Maximized;
     childForm.Show();
 }
예제 #2
0
 private void ShowNewForm(object sender, EventArgs e)
 {
     DocumentForm childForm = new DocumentForm();
     childForm.MdiParent = this;
     childForm.WindowState = FormWindowState.Maximized;
     childForm.Text = "Window " + childFormNumber++;
     childForm.Show();
 }