コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }