コード例 #1
0
 /// <summary>
 ///Using EmployeeDB, the list of employees is declared, and the
 /// position in the list of employees is set to 0
 /// </summary>
 public Manager()
 {
     empdb = EmployeeDB.Instance;
     emps  = empdb.employees;
     pos   = 0;
     InitializeComponent();
 }
コード例 #2
0
 /// <summary>
 /// Creates staff database before the windows loads
 /// </summary>
 public Addemp()
 {
     edb = EmployeeDB.Instance;
     el  = edb.Employees;
     InitializeComponent();
     txtbxFname.Focus();
 }
コード例 #3
0
 /// <summary>
 /// EmployeeDB is instantiated before the main login window
 /// Also sets the number of login attempts at 0
 /// </summary>
 public MainWindow()
 {
     employees = EmployeeDB.Instance;
     attempts  = 0;
     InitializeComponent();
     txtUname.Focus();
 }