示例#1
0
        private void LoginClient_load(object sender, EventArgs e)
        {
            g_versionFile       = System.AppDomain.CurrentDomain.BaseDirectory + g_versionFile;
            g_oldVersion        = CIniCtrl.ReadIniData("Version", "ver", "", g_versionFile);
            lbl_CurVersion.Text = g_oldVersion;

            //加载公告和新闻
            LoadNews();

            //获取服务器IP
            LoadServerConf();

            //加载网页链接
            LoadWebLink();

            //Bitmap btm = Properties.Resources.登陆器界面;
            //Bitmap btm = Properties.Resources.test;
            Bitmap btm = Properties.Resources.窗体背景;

            ImageControl.SetRegion(this, btm);

            this.TopMost = true;
            this.Activate();
            this.TopMost = false;

            sp.Stream = Properties.Resources.启动音乐;
            sp.PlayLooping();
            sound_stop = false;

            //textBox1.BackColor = System.Drawing.Color.Transparent;
            //textBox2.BackColor = System.Drawing.Color.Transparent;
        }
示例#2
0
        private void LoginClient_load(object sender, EventArgs e)
        {
            g_versionFile       = System.AppDomain.CurrentDomain.BaseDirectory + g_versionFile;
            g_oldVersion        = CIniCtrl.ReadIniData("Version", "ver", "", g_versionFile);
            lbl_CurVersion.Text = g_oldVersion;

            //加载公告和新闻
            LoadNews();

            //获取服务器IP
            LoadServerConf();

            //加载网页链接
            LoadWebLink();

            Bitmap btm = Properties.Resources.登录器界面;

            ImageControl.SetRegion(this, btm);

            this.TopMost = true;
            this.Activate();
            this.TopMost = false;
        }