/// <summary> /// Initializes a new instance of the <see cref="FormMain"/> class. /// </summary> public FormMain() { InitializeComponent(); settings = new Settings(); if (Debugger.IsAttached && !overrideDebugCheck) // different settings when debugging.. { VersionCheck.ApiKey = settings.ApiKeyTest; // a random string and a random file on the server... VersionCheck.CheckUri = settings.CheckUriTest; } else { VersionCheck.ApiKey = settings.ApiKey; // a random string and a random file on the server... VersionCheck.CheckUri = settings.CheckUri; } VersionCheck.TimeOutMs = settings.TimeOutMs; tstbLocationURI.Text = VersionCheck.CheckUri; tstbAPIKey.Text = VersionCheck.ApiKey; nudTimeOutMS.Value = settings.TimeOutMs; // update the database to the newest version.. VersionCheck.UpdateDatabase(); // the application dead-locks if the "self-assembly" check is made in the debug mode.. mnuThisAssemblyVersion.Enabled = !Debugger.IsAttached; mnuThisAssemblyVersion.Visible = !Debugger.IsAttached; ListVersions(); }