Ejemplo n.º 1
0
        private void btnPush_Click(object sender, EventArgs e)
        {
            try
            {
                string host     = txtHost.Text.Trim();
                string database = txtDatabase.Text.Trim();
                string appKey   = txtAppKey.Text.Trim();
                string username = txtUsername.Text.Trim();
                string password = txtPassword.Text.Trim();

                string key = KeyBuilder.Build(host, database, appKey);
                SecurityClient.Add(key, string.Format("{0},{1}", username, password));
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }