-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlert.cs
More file actions
34 lines (32 loc) · 1.12 KB
/
Alert.cs
File metadata and controls
34 lines (32 loc) · 1.12 KB
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Bit_Locker
{
public partial class Alert : Form
{
private MainWin MainWin;
public Alert(MainWin MainWin)
{
InitializeComponent();
this.label1.Text = "当普通锁定无效时才考虑强制锁定。\n" +
"强制锁定会卸载目标分区,请先确保:\n" +
"1.已保存该分区上的文件;\n" +
"2.已关闭正在使用该分区的程序。\n" +
"是否继续?";
this.MainWin = MainWin;
ContinueForceButton.Click += ContinueForceButton_Click;
}
private void ContinueForceButton_Click(object sender, EventArgs e)
{
MainWin.ContinueForceButton_Click(sender, e);
Close();
}
}
}