-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathForm_Main.cs
67 lines (56 loc) · 1.59 KB
/
Form_Main.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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;
using System.Threading;
using DPUruNet;
namespace UareUWindowsMSSQLCSharp
{
public partial class Form_Main : Form
{
private Reader reader;
public Reader GetReader
{
get
{
return reader;
}
}
public Form_Main()
{
InitializeComponent();
CheckReaderPluggedin();
//Load all users from database to use in identify function. This data being
//considerably large we would want to load this once at the statrtup of
//application
// HelperFunctions.LoadAllUsers();
}
private void CheckReaderPluggedin()
{
ReaderCollection rc = ReaderCollection.GetReaders();
//If reader count is zero, inform user
if (rc.Count == 0)
{
readerNotFoundlbl.Visible = true;
}
}
private void enrollbtn_Click(object sender, EventArgs e)
{
// Launch EnrollForm
Enroll enrollForm = new Enroll();
enrollForm._sender = this;
enrollForm.ShowDialog();
}
private void verifybtn_Click(object sender, EventArgs e)
{
//Launch VerifyForm
Verify verify = new Verify();
verify._sender = this;
verify.ShowDialog();
}
}
}