using System; using System.Collections; using System.Collections.Generic; using System.Windows.Forms; using Tom=Microsoft.AnalysisServices.Tabular; using System.Drawing; using BismNormalizer.TabularCompare.UI.DesktopInstances; using System.Linq.Expressions; namespace BismNormalizer.TabularCompare.UI { public partial class ConnectionsAlmt : Form { #region Private members private ComparisonInfo _comparisonInfo; private float _dpiScaleFactor; private bool _sourceDatabaseBound = false; private bool _targetDatabaseBound = false; private List _powerBIInstances = new List(); #endregion public ConnectionsAlmt() { InitializeComponent(); } private void Connections_Load(object sender, EventArgs e) { //Settings.Default.SourceServerAutoCompleteEntries = "localhost|"; //Settings.Default.TargetServerAutoCompleteEntries = "localhost|"; //Settings.Default.SourceCatalog = ""; //Settings.Default.TargetCatalog = ""; //Settings.Default.Save(); //this.Width = Convert.ToInt32(this.Width * 1.3); this.Height = Convert.ToInt32(grpSource.Height * 2.6); 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