-
Notifications
You must be signed in to change notification settings - Fork 8
/
UpdateCheck.cs
42 lines (39 loc) · 1.21 KB
/
UpdateCheck.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using MetroFramework;
using System;
using System.Windows.Forms;
namespace PE多功能信息处理插件
{
public partial class TaskWindowControl2 : UserControl
{
public TaskWindowControl2()
{
this.Location = new System.Drawing.Point(100, 100);
InitializeComponent();
if (Program.bootstate.ShowUpdata == 0)
{
metroCheckBox1.Checked = true;
}
else
{
metroCheckBox1.Checked = false;
}
}
private void metroLink2_Click(object sender, EventArgs e)
{
Clipboard.SetData(DataFormats.Text, "https://bowlroll.net/file/95442");
System.Diagnostics.Process.Start("https://bowlroll.net/file/95442");
MetroMessageBox.Show(this, "已经复制到剪切板", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
private void metroCheckBox1_CheckedChanged(object sender, EventArgs e)
{
if (metroCheckBox1.Checked)
{
Program.bootstate.ShowUpdata = 0;
}
else
{
Program.bootstate.ShowUpdata = 1;
}
}
}
}