public ParentLogin() { InitializeComponent(); this.WindowState = WindowState.Maximized; this.db = new ChildCheckInDatabase(); this.txt_IDEntry.KeyDown += new KeyEventHandler(KeyPressedValidateNumber); this.txt_IDEntry.GotFocus += OnIDBoxFocus; this.txt_PINEntry.KeyDown += new KeyEventHandler(KeyPressedValidateNumber); this.txt_PINEntry.GotFocus += OnPINBoxFocus; this.txt_IDEntry.Focus(); }//end win_LoginWindow
public ChildLogin(string ID) { InitializeComponent(); this.guardianID = ID; this.db = new ChildCheckInDatabase(); setUpCheckInBox(); setUpParentDisplay(); eventsSetup(); this.updateTime = new DateTime(); updateTime = DateTime.Now; lbl_Time.DataContext = updateTime; }//end constructor