private void button_About_Click(object sender, EventArgs e) { AboutMe ab = new AboutMe(); ab.ShowDialog(); }
private void MainForm_Load(object sender, EventArgs e) { AboutMe me = new AboutMe(); me.ShowDialog(); timer_Progress = new System.Windows.Forms.Timer(); timer_Progress.Interval = 1000; timer_Progress.Tick += new System.EventHandler(this.timer_Progress_Tick); timer_Progress.Enabled = true; RegistryHelper rh = new RegistryHelper(); try { string strValidDays = rh.GetRegistryData(Registry.CurrentUser, "SOFTWARE\\Aurora\\AuroraDownloadPictures\\", "ValidDays"); int nValidDays = Convert.ToInt32(strValidDays); string strRegDate = rh.GetRegistryData(Registry.CurrentUser, "SOFTWARE\\Aurora\\AuroraDownloadPictures\\", "RegDate"); int nSpan = 0; TimeSpan d3 = DateTime.Now.Subtract(Convert.ToDateTime(strRegDate)); nSpan = d3.Days; if (nSpan < 0) { comboBox_PicStyle.Text = "页面图片"; } else { int nTemp = nValidDays - nSpan; if (nTemp <= 31) { ShowTips("会员剩余天数:" + nTemp.ToString() + "\r\n\r\n" + "支持的网站:\r\n" + "①蜂鸟网论坛\r\n" + "http://bbs.fengniao.com/forum/***.html\r\n" + "②中关村摄影论坛\r\n" + "http://bbs.zol.com.cn/dcbbs/***.html\r\n" + "③POCO摄影空间\r\n" + "http://photo.poco.cn/lastphoto-htx-id-***-p-0.xhtml\r\n" + "④图虫网\r\n" + "https://portrait.tuchong.com/***/\r\n" + "其他摄影论坛尚未添加,或者可以使用自定义功能自行添加\r\n\r\n"); } if (strValidDays == "") { comboBox_PicStyle.Text = "页面图片"; } else { if (nTemp > 0) { b_VIP = true; comboBox_PicStyle.Text = "高清原图"; timer_Progress.Enabled = false; } else { comboBox_PicStyle.Text = "页面图片"; } } } } catch { comboBox_PicStyle.Text = "页面图片"; } LoadCustomRules(); }