Beispiel #1
0
 private void RefreshWalletList()
 {
     foreach (var fileInfo in WalletDirectories.EnumerateWalletFiles())
     {
         try
         {
             string walletName = Path.GetFileNameWithoutExtension(fileInfo.FullName);
             lock (Lock)
             {
                 if (Wallets.Any(w => w.Key.WalletName == walletName))
                 {
                     continue;
                 }
             }
             AddWallet(walletName);
         }
         catch (Exception ex)
         {
             Logger.LogWarning(ex);
         }
     }
 }