Ejemplo n.º 1
0
        private void acceptButton_Click(object sender, RoutedEventArgs e)
        {
            // Update connection params
            this.ConnectionInfo = new ConnectionParams()
            {
                Directory = directoryBox.Text, Username = ""
            };
            this.ConnectionInfo.Source = ConnectionSource.RSMLDirectory;

            // Save connection params
            EncryptedStorage.SaveEncryptedString("C_DATA", this.ConnectionInfo.ToXML());

            this.DialogResult = true;
            this.Close();
        }
Ejemplo n.º 2
0
        private void acceptButton_Click(object sender, RoutedEventArgs e)
        {
            // Update connection params
            this.ConnectionInfo = new ConnectionParams()
            {
                Server = serverBox.Text, Port = portBox.Text, Database = databaseBox.Text, Directory = directoryBox.Text, Password = passwordBox.Password, Username = userBox.Text
            };
            this.ConnectionInfo.Source = (bool)this.databaseRadioButton.IsChecked ? ConnectionSource.MySQLDatabase : ConnectionSource.RSMLDirectory;

            // Save connection params
            EncryptedStorage.SaveEncryptedString("C_DATA", this.ConnectionInfo.ToXML());

            this.DialogResult = true;
            this.Close();
        }