SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
ManagerLogin.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.Text;
7 using System.Windows.Forms;
8 
9 namespace Sample_Environment_Control_Interface.Dialogs.Manager
10 {
11  public partial class ManagerLogin : Form
12  {
13  public ManagerLogin()
14  {
15  InitializeComponent();
16  }
17 
18  private void btnnOK_Click(object sender, EventArgs e)
19  {
20  if (Seci.SeciInterface.LogInAsManager(txtPassword.Text))
21  {
22  DialogResult = DialogResult.OK;
23  }
24  else
25  {
26  MessageBox.Show("The password entered is incorrect!", "Incorrect Password!", MessageBoxButtons.OK, MessageBoxIcon.Error);
27  DialogResult = DialogResult.Cancel;
28  }
29 
30  Close();
31  }
32  }
33 }