private void DecryptedTextBox_KeyUp(object sender, KeyEventArgs e) { string encryptedPassword = ConnectionStringSecurity.Encode(decryptedTextBox.Text); encryptedTextBox.Text = encryptedPassword; if (encryptedTextBox.Text != "") { copyLinkLabel.Enabled = true; } else { copyLinkLabel.Enabled = false; } }
public static void SaveConfig() { RegistryHandler.SaveToRegistry("ConnectionString", ConnectionStringSecurity.Encode(ConnectionStringToSave, "ConnectionString")); RegistryHandler.SaveToRegistry("SaveConnectionString", SaveConnectionString); RegistryHandler.SaveToRegistry("WindowSize", WindowSize); RegistryHandler.SaveToRegistry("SplitterDistanceVertical", SplitterDistanceVertical); RegistryHandler.SaveToRegistry("SplitterDistanceHorizontal", SplitterDistanceHorizontal); RegistryHandler.SaveToRegistry("DescriptionFields", GetDescriptionFieldListToXml(_descriptionFields)); RegistryHandler.SaveToRegistry("DescriptionTemplates", GetDescriptionTemplateListToXml(_descriptionTemplates)); RegistryHandler.SaveToRegistry("TextDataFontFamily", TextDataFontFamily); RegistryHandler.SaveToRegistry("TextDataFontSize", TextDataFontSize); RegistryHandler.SaveToRegistry("DescriptionFontFamily", DescriptionFontFamily); RegistryHandler.SaveToRegistry("DescriptionFontSize", DescriptionFontSize); RegistryHandler.SaveToRegistry("CheckForUpdatesOnStart", CheckForUpdatesOnStart); RegistryHandler.SaveToRegistry("ShowDdlScript", ShowDdlScript); RegistryHandler.SaveToRegistry("SchemaName", SchemaName); }
public static void SaveConnection() { RegistryHandler.SaveToRegistry("ConnectionString", ConnectionStringSecurity.Encode(ConnectionStringToSave, "ConnectionString")); RegistryHandler.SaveToRegistry("SaveConnectionString", SaveConnectionString); RegistryHandler.SaveToRegistry("OfflineMode", OfflineModeToSave); }