private void buttonBuild_Click(object sender, EventArgs e) { var hs = Hset.Clone(); hs.List.GetLast().Link = hs.List; Size cs0 = Program.FormFractionClientSize; var ff = new FormFraction { Hset = hs, SumAbc = hs.SumAbc, Font = Font }; Size cs1 = ff.ClientSize; Program.FormFractionClientSize = cs0; ff.PreScale = new SizeF((float)cs1.Width / cs0.Width, (float)cs1.Height / cs0.Height); //ff.ClientSize = cs0; ff.InitMono(); ff.Show(); }
private void ShowCopy_Click(object sender, EventArgs e) { var ff = new FormFraction { Hset = Hset.Clone(), SumAbc = SumAbc, M = M, K = K, ShiftAbc = ShiftAbc, ContFrac = ContFrac.Clone(), PreScale = PreScale, Font = Font, ClientSize = ClientSize }; ff.InitMono(); ff.numericUpDownK.Value = K; ff.numericUpDownA.Value = ShiftAbc.A; ff.numericUpDownB.Value = ShiftAbc.B; ff.numericUpDownC.Value = ShiftAbc.C; ff.Show(); }