Exemplo n.º 1
0
 private static void Performlookup()
 {
     try
     {
         string setwebsite = Misc.getsetwebsite().ToLower();
         if (setwebsite == "lolnexus")
         {
             Console.WriteLine("Looking up using Lolnexus");
             Lolnexus.lolnexuslookup(nameofplayer, Misc.sortedregion());
             if (Lolnexus.Ranksloading.Any())
             {
                 DoDrawings();
                 Game.OnWndProc += Game_OnWndProc;
                 if (Timer != null)
                 {
                     Timer.Elapsed -= new ElapsedEventHandler(TriggerLookup);
                     Timer.Enabled  = false;
                 }
             }
             return;
         }
         if (setwebsite == "lolskill")
         {
             Console.WriteLine("Looking up using Lolskill");
             LolSkill.lolskilllookup(nameofplayer);
             if (LolSkill.Ranksloading.Any())
             {
                 DoDrawings();
                 Game.OnWndProc += Game_OnWndProc;
                 if (Timer != null)
                 {
                     Timer.Elapsed -= new ElapsedEventHandler(TriggerLookup);
                     Timer.Enabled  = false;
                 }
             }
             return;
         }
         if (setwebsite == "opgg")
         {
             Console.WriteLine("Looking up using OPGG Live");
             OPGGLIVE.PerformLookup(nameofplayer);
             if (OPGGLIVE.Ranks.Any())
             {
                 DoDrawings();
                 Game.OnWndProc += Game_OnWndProc;
                 if (Timer != null)
                 {
                     Timer.Elapsed -= new ElapsedEventHandler(TriggerLookup);
                     Timer.Enabled  = false;
                 }
             }
         }
     }
     catch (Exception e)
     {
         Console.Write(e + e.StackTrace);
     }
 }
Exemplo n.º 2
0
        private static void Performlookup()
        {
            string setwebsite = Misc.getsetwebsite().ToLower();

            if (setwebsite == "lolnexus")
            {
                Console.WriteLine("Looking up using Lolnexus");
                Lolnexus.lolnexuslookup(nameofplayer, Misc.sortedregion());
                DoDrawings();
            }
            if (setwebsite == "lolskill")
            {
                LolSkill.lolskilllookup(nameofplayer);
                DoDrawings();
            }
        }