private void openToolStripMenuItem_Click(object sender, EventArgs e) { if (openFileDialog1.ShowDialog() != DialogResult.OK) { return; } MatrixForm child = MatrixForm.OpenMatrix(openFileDialog1.FileName); child.MdiParent = this; child.Show(); }
private void newToolStripMenuItem_Click(object sender, EventArgs e) { var dialog = new CreateMatrixDialog(); if (dialog.ShowDialog() != DialogResult.OK) { return; } var child = new MatrixForm(dialog.Sizes, dialog.Lengths, dialog.Data) { MdiParent = this }; child.Show(); }