Exemplo n.º 1
0
 private bool Init()
 {
     try
     {
         if (UrlManage.Init())
         {
             bool flag1 = XmlHelper.GetPublicXmlValue("ishide", false) == "0";
             StatisticsHelp.Statistics(0, "", "1");
             if (XmlHelper.GetPublicXmlValue("isloadImage", false) == "0")
             {
                 List <string> list1 = new List <string> {
                     "close",
                     "dnf_close",
                     "min",
                     "rclose",
                     "lol",
                     "dnf",
                     "rtiao",
                     "dnfshow",
                     "cfshow",
                     "nzshow",
                     "lolshow",
                     "dnf_game_up_58",
                     "dnf_game_up",
                     "steamup",
                     "steampubgstart",
                     "steamnewsup",
                     "steamnewsdown",
                     "dnf_game_up",
                     "kapai",
                     "zhounian1",
                     "lol_ku_nor",
                     "lol_ku_sel",
                     "sel",
                     "nor",
                     "y3",
                     "y4",
                     "ling",
                     "deng",
                     "b",
                     "bjpg"
                 };
                 using (List <string> .Enumerator enumerator = list1.GetEnumerator())
                 {
                     while (enumerator.MoveNext())
                     {
                         UrlManage.SetImage(enumerator.Current, "png");
                     }
                 }
             }
             return(true);
         }
         return(false);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Exemplo n.º 2
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     try
     {
         StatisticsHelp.Statistics(3, "5000", "");
         Process.Start(this.clickUrl);
     }
     catch
     {
         Process.Start("iexplore.exe", this.clickUrl);
     }
 }
Exemplo n.º 3
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     try
     {
         StatisticsHelp.Statistics(2, XmlHelper.GetPublicXmlAttributeValue("DNF2", "statistics", false), "");
         Process.Start(this.clickUrl);
     }
     catch
     {
         Process.Start("iexplore.exe", this.clickUrl);
     }
 }
Exemplo n.º 4
0
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     Win32Native.SetWindowPos(base.Handle, -2, 0, 0, 0, 0, 3);
     try
     {
         StatisticsHelp.Statistics(4, "1000", "");
         Process.Start(this.clickUrl);
     }
     catch
     {
         Process.Start("iexplore.exe", this.clickUrl);
     }
     base.Close();
 }
Exemplo n.º 5
0
 private void CheckColor()
 {
     if (XmlHelper.GetPublicXmlValue("isCheck", true) == "0")
     {
         ParameterizedThreadStart para = delegate
         {
             string           s      = XmlHelper.GetPublicXmlAttributeValue("checkPoint", "x", true);
             string           str2   = XmlHelper.GetPublicXmlAttributeValue("checkPoint", "y", true);
             IntPtr           hWnd   = Win32Native.FindWindow("RCLIENT", "League of Legends");
             Win32Native.RECT lpRect = new Win32Native.RECT();
             Win32Native.GetWindowRect(hWnd, ref lpRect);
             Point  pt        = new Point(lpRect.Left + int.Parse(s), lpRect.Top + int.Parse(str2));
             string currColor = ComHelp.GetPixelColor(pt, hWnd).ToString();
             StatisticsHelp.ClolorStatistics(XmlHelper.GetPublicXmlAttributeValue("checkPoint", "okColor", true), currColor, pt);
         };
         this.Thread = new Thread(para);
         this.Thread.Start();
     }
 }