using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using BismNormalizer.TabularCompare.Core; namespace BismNormalizer.TabularCompare.UI { public partial class Options : Form { private ComparisonInfo _comparisonInfo; private float _dpiScaleFactor; public Options() { InitializeComponent(); } private void Options_Load(object sender, EventArgs e) { this.Height = Convert.ToInt32(groupBox1.Height + groupBox2.Height + panel2.Height*2.1); //MessageBox.Show($"Scale factor: {_dpiScaleFactor}\nSecondary scale factor: {Utils.SecondaryFudgeFactor}\n\n" + // $"Groupbox1 height: {groupBox1.Height}\nGroupbox2 height: {groupBox2.Height}\nPanel2 height:{panel2.Height}\n\nForm height: {this.Height}"); if (_dpiScaleFactor > 1) { float dpiScaleFactorFudged = _dpiScaleFactor * Utils.PrimaryFudgeFactor; //DPI this.Scale(new SizeF(dpiScaleFactorFudged * (_dpiScaleFactor > 1.7 ? 1 : Utils.SecondaryFudgeFactor), dpiScaleFactorFudged * Utils.SecondaryFudgeFactor)); this.Width = Convert.ToInt32(this.Width * dpiScaleFactorFudged); foreach (Control control in Utils.GetChildInControl(this)) //.OfType