コード例 #1
0
        private void btnDecrypt_Click(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;
                ProcessOrders p = new ProcessOrders();
                p.DecryptConfigSection("appSettings");
                p.DecryptConfigSection("connectionStrings");

                MessageBox.Show("Config file has been decrypted.");
            }catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }

            this.Cursor = Cursors.Default;
        }