using System; using System.Collections; using System.Collections.Generic; using System.Windows.Forms; using Microsoft.AnalysisServices; using System.Drawing; namespace BismNormalizer.TabularCompare.UI { public partial class Connections : Form { private ComparisonInfo _comparisonInfo; private float _dpiScaleFactor; private bool _sourceDatabaseBound = false; private bool _targetDatabaseBound = false; private bool _SetTargetDatabaseFromSourceProjectConfigurationAllowed = false; private SortedList _projects; public Connections() { InitializeComponent(); } private void Connections_Load(object sender, EventArgs e) { if (_dpiScaleFactor > 1) { //DPI float dpiScaleFactorFudged = _dpiScaleFactor * Utils.PrimaryFudgeFactor; float fudgeFactorWidth = 0.95f; this.Scale(new SizeF(dpiScaleFactorFudged * (_dpiScaleFactor > 1.7 ? 1 : Utils.SecondaryFudgeFactor), dpiScaleFactorFudged * Utils.SecondaryFudgeFactor)); this.Width = Convert.ToInt32(this.Width * dpiScaleFactorFudged * fudgeFactorWidth); foreach (Control control in Utils.GetChildInControl(this)) //.OfType