private void LoadWebLink() { //网站连接 WebSite = CIniCtrl.ReadIniData("Server", "WebSite", "", g_versionFile); if (WebSite == "" || WebSite == null) { WebSite = "www.baidu.com"; } ReCharge = CIniCtrl.ReadIniData("Server", "ReCharge", "", g_versionFile); if (ReCharge == "" || ReCharge == null) { ReCharge = "www.baidu.com"; } GameBBS = CIniCtrl.ReadIniData("Server", "GameBBS", "", g_versionFile); if (GameBBS == "" || GameBBS == null) { GameBBS = "www.baidu.com"; } HelpCenter = CIniCtrl.ReadIniData("Server", "HelpCenter", "", g_versionFile); if (HelpCenter == "" || HelpCenter == null) { HelpCenter = "www.baidu.com"; } }
private void LoadServerConf() { serverIp = CIniCtrl.ReadIniData("Server", "ServerIP", "", g_versionFile); if (serverIp == "" || serverIp == null) { MessageBox.Show("丢失必须文件,请重新下载登录器!"); } //获取启动游戏文件 StartFile = CIniCtrl.ReadIniData("Server", "StartFile", "", g_versionFile); if (StartFile == "" || StartFile == null) { MessageBox.Show("丢失必须文件,请重新下载登录器!"); } string port = CIniCtrl.ReadIniData("Server", "serverPort", "", g_versionFile); if (port == "" || port == null) { MessageBox.Show("丢失必须文件,请重新下载登录器!"); } else { serverPort = int.Parse(port); } }
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; }
private void LoadNews() { //notice lbl_notic.Text = CIniCtrl.ReadIniData("Notic", "text", "", g_versionFile); lbl_notic.Links.Add(0, lbl_notic.Text.Length, CIniCtrl.ReadIniData("Notic", "link", "", g_versionFile)); lbl_notic1.Text = CIniCtrl.ReadIniData("Notic1", "text", "", g_versionFile); lbl_notic1.Links.Add(0, lbl_notic1.Text.Length, CIniCtrl.ReadIniData("Notic1", "link", "", g_versionFile)); lbl_noticTime1.Text = CIniCtrl.ReadIniData("Notic1", "time", "", g_versionFile); lbl_notic2.Text = CIniCtrl.ReadIniData("Notic2", "text", "", g_versionFile); lbl_notic2.Links.Add(0, lbl_notic2.Text.Length, CIniCtrl.ReadIniData("Notic2", "link", "", g_versionFile)); lbl_noticTime2.Text = CIniCtrl.ReadIniData("Notic2", "time", "", g_versionFile); lbl_notic3.Text = CIniCtrl.ReadIniData("Notic3", "text", "", g_versionFile); lbl_notic3.Links.Add(0, lbl_notic3.Text.Length, CIniCtrl.ReadIniData("Notic3", "link", "", g_versionFile)); lbl_noticTime3.Text = CIniCtrl.ReadIniData("Notic3", "time", "", g_versionFile); lbl_notic4.Text = CIniCtrl.ReadIniData("Notic4", "text", "", g_versionFile); lbl_notic4.Links.Add(0, lbl_notic4.Text.Length, CIniCtrl.ReadIniData("Notic4", "link", "", g_versionFile)); lbl_noticTime4.Text = CIniCtrl.ReadIniData("Notic4", "time", "", g_versionFile); lbl_notic5.Text = CIniCtrl.ReadIniData("Notic5", "text", "", g_versionFile); lbl_notic5.Links.Add(0, lbl_notic5.Text.Length, CIniCtrl.ReadIniData("Notic5", "link", "", g_versionFile)); lbl_noticTime5.Text = CIniCtrl.ReadIniData("Notic5", "time", "", g_versionFile); }
private void LoginClient_load(object sender, EventArgs e) { g_versionFile = System.AppDomain.CurrentDomain.BaseDirectory + g_versionFile; g_oldVersion = CIniCtrl.ReadIniData("Version", "ver", "", g_versionFile); //加载公告和新闻 LoadNews(); //加载服务器信息 LoadServerConf(); thClient = new Thread(new ThreadStart(new ThreadStart(Updating))); thClient.Start(); // TestForm will contain the per-pixel-alpha dib Bitmap btm = Properties.Resources.登录器界面; GraphicsPath gp = ImageControl.CreateGraphicsPath(btm); this.Region = new Region(gp); this.TopMost = true; this.Activate(); this.TopMost = false; }
private void LoadNews() { lbl_notic1.Text = CIniCtrl.ReadIniData("Notic1", "text", "", g_versionFile); lbl_notic1.Links.Add(0, lbl_notic1.Text.Length, CIniCtrl.ReadIniData("Notic1", "link", "", g_versionFile)); lbl_noticTime1.Text = CIniCtrl.ReadIniData("Notic1", "time", "", g_versionFile); lbl_notic2.Text = CIniCtrl.ReadIniData("Notic2", "text", "", g_versionFile); lbl_notic2.Links.Add(0, lbl_notic2.Text.Length, CIniCtrl.ReadIniData("Notic2", "link", "", g_versionFile)); lbl_noticTime2.Text = CIniCtrl.ReadIniData("Notic2", "time", "", g_versionFile); lbl_notic3.Text = CIniCtrl.ReadIniData("Notic3", "text", "", g_versionFile); lbl_notic3.Links.Add(0, lbl_notic3.Text.Length, CIniCtrl.ReadIniData("Notic3", "link", "", g_versionFile)); lbl_noticTime3.Text = CIniCtrl.ReadIniData("Notic3", "time", "", g_versionFile); //share lbl_share1.Text = CIniCtrl.ReadIniData("Share1", "text", "", g_versionFile); lbl_share1.Links.Add(0, lbl_share1.Text.Length, CIniCtrl.ReadIniData("Share1", "link", "", g_versionFile)); lbl_shareTime1.Text = CIniCtrl.ReadIniData("Share1", "time", "", g_versionFile); lbl_share2.Text = CIniCtrl.ReadIniData("Share2", "text", "", g_versionFile); lbl_share2.Links.Add(0, lbl_share2.Text.Length, CIniCtrl.ReadIniData("Share2", "link", "", g_versionFile)); lbl_shareTime2.Text = CIniCtrl.ReadIniData("Share2", "time", "", g_versionFile); lbl_share3.Text = CIniCtrl.ReadIniData("Share3", "text", "", g_versionFile); lbl_share3.Links.Add(0, lbl_notic3.Text.Length, CIniCtrl.ReadIniData("Share3", "link", "", g_versionFile)); lbl_shareTime3.Text = CIniCtrl.ReadIniData("Share3", "time", "", g_versionFile); }
private void rbt_hcsg_CheckedChanged(object sender, EventArgs e) { if (rbt_hcsg.Checked) { //serverPort = 6633; serverPort = int.Parse(CIniCtrl.ReadIniData("Server", "serverPort2", "", g_versionFile)); } }
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; }
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(); thClient = new Thread(new ThreadStart(new ThreadStart(Updating))); thClient.Start(); this.TopMost = true; this.Activate(); this.TopMost = false; }