Bitcoin_QR_Popup.Form1.check_wallet_has_passphrase C# (CSharp) Метод

check_wallet_has_passphrase() приватный Метод

private check_wallet_has_passphrase ( ) : void
Результат void
        private void check_wallet_has_passphrase()
        {
            if (!can_exit)
            {
                JObject j = bc.WalletPassphrase("a_string_which_is_definitely_not_the_password", 1);
                if (j.HasValues)
                {
                    string error = j["error"]["message"].ToString();
                    if (error.Contains("incorrect"))
                    {
                        //Nothing to do - they have made a passphrase
                    }
                    else
                    {
                        TopMostMessageBox.Show("You must set a passphrase on your wallet.\n\nOpen the client and select Settings > Encrypt Wallet.", "Bticoin QR Popup", MessageBoxButtons.OK); //TODO translate
                        can_exit = true;
                    }
                }
            }
        }