EaseFilter Demo Project
SetupPasswordForm.cs
Go to the documentation of this file.
1 //
3 // (C) Copyright 2012 EaseFilter Technologies Inc.
4 // All Rights Reserved
5 //
6 // This software is part of a licensed software product and may
7 // only be used or copied in accordance with the terms of that license.
8 //
10 
11 using System;
12 using System.Collections.Generic;
13 using System.ComponentModel;
14 using System.Data;
15 using System.Drawing;
16 using System.Linq;
17 using System.Text;
18 using System.Windows.Forms;
19 
21 
22 namespace AutoFileCryptTool
23 {
24  public partial class SetupPasswordForm : Form
25  {
26  public bool isPasswordMatched = false;
27 
29  {
30  InitializeComponent();
31  this.StartPosition = FormStartPosition.CenterScreen;
32  }
33 
34  private void button_NewPassword_Click(object sender, EventArgs e)
35  {
36  if (string.IsNullOrEmpty(textBox_Password1.Text))
37  {
38  MessageBoxHelper.PrepToCenterMessageBoxOnForm(this);
39  MessageBox.Show("The password can't be empty.", "Password", MessageBoxButtons.OK, MessageBoxIcon.Error);
40 
41  isPasswordMatched = false;
42  }
43  else if (string.Compare(textBox_Password1.Text, textBox_Password2.Text, false) != 0)
44  {
45  MessageBoxHelper.PrepToCenterMessageBoxOnForm(this);
46  MessageBox.Show("The password doesn't match.", "Password", MessageBoxButtons.OK, MessageBoxIcon.Error);
47 
48  isPasswordMatched = false;
49  }
50  else
51  {
52  isPasswordMatched = true;
53  GlobalConfig.MasterPassword = textBox_Password1.Text;
54  this.Close();
55  }
56  }
57 
58 
59  }
60 }

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