Subversion Repositories Code-Repo

Rev

Rev 63 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
9 Kevin 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
 
10
namespace SWAT_Office_App
11
{
63 Kevin 12
    public partial class Settings_Verify_Form : Form
9 Kevin 13
    {
63 Kevin 14
        public Settings_Verify_Form()
9 Kevin 15
        {
16
            InitializeComponent();
17
            this.txt_Password.Focus();
18
 
19
            // Monitors the text in each textbox, triggering changes when certain criteria is met
20
            this.txt_Password.TextChanged += new EventHandler(this.txt_Password_TextChanged);
21
        }
22
        private void txt_Password_TextChanged(object sender, EventArgs e)
23
        {
24
            TextBox tb = (TextBox)sender;
53 Kevin 25
            if (tb.Text == Settings_Form.globalAdminPassword)
9 Kevin 26
            {
27
                Settings_Form.settings_Form_Instance.ShowDialog();
28
                this.Close();
29
            }
30
        }
31
        private void btn_Cancel_Click(object sender, EventArgs e)
32
        {
33
            this.Close();
34
        }
35
    }
36
}