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(); }
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(); } }
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(); } }