Example #1
0
        private void cfShow_Load(object sender, EventArgs e)
        {
            this.clickUrl = XmlHelper.GetPublicXmlValue("url_cf", false);
            if (!this.clickUrl.Contains("http"))
            {
                this.clickUrl = XmlHelper.GetPublicXmlValue("webip", true) + this.clickUrl;
            }
            this.imgName = "rtiao";
            if (UrlManage.ImageList.Keys.Contains <string>(this.imgName))
            {
                this.pictureBox1.Image = UrlManage.ImageList[this.imgName];
            }
            else
            {
                this.pictureBox1.Image = UrlManage.GetImage(UrlManage.BaseImgDir + this.imgName + ".png");
                UrlManage.ImageList.Add(this.imgName, this.pictureBox1.Image);
            }
            this.pictureBox1.Image = UrlManage.SetImage("rtiao", "png");
            this.pictureBox2.Image = UrlManage.SetImage("cfshow", "png");
            this.pictureBox3.Image = UrlManage.SetImage("min", "png");
            this.pictureBox4.Image = UrlManage.SetImage("rclose", "png");
            Icon icon = Icon.FromHandle(((Bitmap)UrlManage.SetImage("icon", "ico")).GetHicon());

            base.Icon = icon;
            this.SetLocation();
            base.TopMost = true;
        }