コード例 #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);
     }
 }
コード例 #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);
     }
 }
コード例 #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);
     }
 }
コード例 #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();
 }