EaseFilter Demo Project
VerifyPassword.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9 
11 
12 namespace AutoFileCryptTool
13 {
14  public partial class VerifyPasswordForm : Form
15  {
16  public bool isPasswordMatched = false;
17 
19  {
20  InitializeComponent();
21  this.StartPosition = FormStartPosition.CenterScreen;
22  }
23 
24  private void button_VerifyPassword_Click(object sender, EventArgs e)
25  {
26  if (string.Compare(textBox_Password1.Text, GlobalConfig.MasterPassword, false) != 0)
27  {
28  MessageBoxHelper.PrepToCenterMessageBoxOnForm(this);
29  MessageBox.Show("The password is not correct.", "Password", MessageBoxButtons.OK, MessageBoxIcon.Error);
30  isPasswordMatched = false;
31  }
32  else
33  {
34  isPasswordMatched = true;
35  this.Close();
36  }
37  }
38  }
39 }

Social Network


Services Overview

Architect, implement and test file system filter drivers for a wide range of functionality. We can offer several levels of assistance to meet your specific.

Contact Us

You are welcome to contact us for salse or partnership.

Sales: sales@easefilter.com
Support: support@easefilter.com
Info: info@easefilter.com