/// <summary> /// 运行时加载 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Form1_Load(object sender, EventArgs e) { //分辨率是否一致 if (exit) { Application.Exit(); } //判断是否需要升级 if (impurity.compareEditon(impurity.nowEdition(), impurity.getEdition())) { this.NewVersionLLB.Visible = true; } if (LoginInfo) { this.LoginName.Text = NickName; this.HeadPic.Enabled = false; this.HeadPic.Visible = false; this.LoginName.Enabled = true; this.LoginName.Visible = true; } //开启公告 if (Status) { new Thread(showNotice).Start(); } re.Name = "RecordingAuto";//设置录制线程名称 this.numlamp.Image = imageList1.Images[0]; this.capslamp.Image = imageList1.Images[1]; this.scolllamp.Image = imageList1.Images[2]; InputLanguage a = InputLanguage.FromCulture(new System.Globalization.CultureInfo("en-US")); //初始化参数 initPic(); initBtn(); iniBtnMusic(); iniLbYin_Top(); iniLbYin_Bottom(); //加载主题 loadTheme(); //显示捐献排行 donate.id = id; donate.TopMost = false; donate.TopLevel = false; donate.FormBorderStyle = FormBorderStyle.None; donate.Size = pn_donace.Size; donate.Dock = DockStyle.Fill; pn_donace.Controls.Add(donate); donate.Show(); //关闭等待动画进程 ProcessStart.processStop(process); if (!themeLoad) { MessageBox.Show("主题加载失败,已经重新设置主题!!!", "主题加载失败!!", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void donate_label_Click(object sender, EventArgs e) { DonateForm donate = new DonateForm(); donate.Show(); }
private void DonateLab_Click(object sender, EventArgs e) { System.Windows.Forms.Form donateForm = new DonateForm(); donateForm.Show(); }