Rev 53 | Blame | Last modification | View Log | RSS feed
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace SWAT_Office_App
{
public partial class Settings_Verify_Form : Form
{
public Settings_Verify_Form()
{
InitializeComponent();
this.txt_Password.Focus();
// Monitors the text in each textbox, triggering changes when certain criteria is met
this.txt_Password.TextChanged += new EventHandler(this.txt_Password_TextChanged);
}
private void txt_Password_TextChanged(object sender, EventArgs e)
{
TextBox tb = (TextBox)sender;
if (tb.Text == Settings_Form.globalAdminPassword)
{
Settings_Form.settings_Form_Instance.ShowDialog();
this.Close();
}
}
private void btn_Cancel_Click(object sender, EventArgs e)
{
this.Close();
}
}
}