コード例 #1
0
    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;
        }
    }
コード例 #2
0
 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);
 }
コード例 #3
0
 public static void SaveConnection()
 {
     RegistryHandler.SaveToRegistry("ConnectionString", ConnectionStringSecurity.Encode(ConnectionStringToSave, "ConnectionString"));
     RegistryHandler.SaveToRegistry("SaveConnectionString", SaveConnectionString);
     RegistryHandler.SaveToRegistry("OfflineMode", OfflineModeToSave);
 }