/// <summary> /// Initializes settings for the <see cref="MySqlWorkbench"/>, <see cref="MySqlSourceTrace"/>, <see cref="MySqlWorkbenchPasswordVault"/> and <see cref="MySqlInstaller"/> classes. /// </summary> private static void InitializeStaticSettings() { MySqlWorkbench.ExternalApplicationName = AssemblyInfo.AssemblyTitle; MySqlWorkbenchPasswordVault.ApplicationPasswordVaultFilePath = EnvironmentApplicationDataDirectory + PASSWORDS_VAULT_FILE_RELATIVE_PATH; MySqlWorkbench.ExternalConnections.CreateDefaultConnections = !MySqlWorkbench.ConnectionsFileExists && MySqlWorkbench.Connections.Count == 0; MySqlWorkbench.ExternalApplicationsConnectionsFileRetryLoadOrRecreate = true; MySqlWorkbench.ExternalApplicationConnectionsFilePath = EnvironmentApplicationDataDirectory + CONNECTIONS_FILE_RELATIVE_PATH; MySqlWorkbench.LoadData(); MySqlWorkbench.LoadServers(); MySqlInstaller.InstallerLegacyDllPath = InstallLocation; MySqlInstaller.LoadData(); }
/// <summary> /// Initializes settings for the <see cref="MySqlWorkbench"/>, <see cref="MySqlWorkbenchPasswordVault"/> and <see cref="MySqlInstaller"/> classes. /// </summary> private static void InitializeStaticSettings() { AutoStyleableBaseForm.HandleDpiSizeConversions = true; MySqlWorkbench.ExternalApplicationName = AssemblyInfo.AssemblyTitle; MySqlWorkbenchPasswordVault.ApplicationPasswordVaultFilePath = EnvironmentApplicationDataDirectory + PASSWORDS_VAULT_FILE_RELATIVE_PATH; MySqlWorkbench.ExternalConnections.CreateDefaultConnections = !MySqlWorkbench.ConnectionsFileExists && MySqlWorkbench.Connections.Count == 0; MySqlWorkbench.ExternalApplicationsConnectionsFileRetryLoadOrRecreate = true; MySqlWorkbench.ExternalApplicationConnectionsFilePath = EnvironmentApplicationDataDirectory + CONNECTIONS_FILE_RELATIVE_PATH; MySqlWorkbench.LoadData(); MySqlInstaller.LoadData(true); PasswordDialog.ApplicationIcon = Resources.MySqlNotifierIcon; PasswordDialog.SecurityLogo = Resources.NotifierSecurityImage; }