private System.Windows.Forms.Form CreateTopLevelWindow( ReadOnlyCollection <string> args) { String fileName = null; if (args.Count > 0) { fileName = args[0]; } return(MultiSDIForm.CreateTopLevelWindow(fileName)); }
private void openToolStripMenuItem_Click(object sender, EventArgs e) { using (OpenFileDialog dlg = new OpenFileDialog()) { dlg.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*"; if (dlg.ShowDialog() == DialogResult.OK) { MultiSDIForm.CreateTopLevelWindow(dlg.FileName); } } }
private void newToolStripButton_Click(object sender, EventArgs e) { MultiSDIForm.CreateTopLevelWindow(null); }