void New() { var form = new DocumentForm() { MdiParent = this, }; form.Show(); }
internal MainForm(string[] fileNames) : this() { foreach (var fileName in fileNames) { var form = new DocumentForm(fileName) { MdiParent = this, }; form.Show(); } }
void Open() { var dialog = new OpenFileDialog { Multiselect = true, }; if (dialog.ShowDialog() != DialogResult.OK) { return; } foreach (var fileName in dialog.FileNames) { var form = new DocumentForm(fileName) { MdiParent = this, }; form.Show(); } }