示例#1
0
        private void button8_Click(object sender, EventArgs e)
        {
            AnalysisForm af = new AnalysisForm();

            af.MdiParent = MdiParent;
            foreach (NumberItem ni in list)
            {
                af.AddNumbers(ni.Derivation(5));
            }
            af.RefreshList();
            af.Show();
        }
示例#2
0
        private void newAnalyseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AnalyseInit ai = new AnalyseInit();

            if (ai.ShowDialog() == DialogResult.OK)
            {
                AnalysisForm af = new AnalysisForm();
                af.Text      = "Analysis" + ai.Number.ToString();
                af.MdiParent = this;
                af.Show();
            }
        }
示例#3
0
        private void openAnalysisToolStripMenuItem_Click(object sender, EventArgs e)
        {
            OpenFileDialog ofd = new OpenFileDialog();

            ofd.Filter = "Numbers files (*.nums)|*.nums";

            if (ofd.ShowDialog() == DialogResult.OK)
            {
                AnalysisForm af = new AnalysisForm();
                af.Text      = Path.GetFileNameWithoutExtension(ofd.FileName);
                af.MdiParent = this;
                af.LoadFile(ofd.FileName);
                af.Show();
            }
        }