示例#1
0
    void OnClickNextPrivateKey()
    {
        var privateKeyFiles = NanoUtils.GetPrivateKeyFiles();

        if (privateKeyFiles.Length > 0)
        {
            var privateKeyFile = privateKeyFiles[privateKeyIndex];
            privateKey = NanoUtils.LoadPrivateKey(privateKeyFile, password);
            if (!String.IsNullOrEmpty(privateKey))
            {
                PrivateKeyChanged();
            }
            ++privateKeyIndex;
            if (privateKeyIndex >= privateKeyFiles.Length - 1)
            {
                privateKeyIndex = 0;
            }
        }
        if (privateKeyFiles.Length > 1)
        {
            LastWorkUI.text       = ""; // Clear some fields
            BalanceUI.text        = "";
            PendingBalanceUI.text = "";
        }
    }