private void LaunchCardReader_Click(object sender, EventArgs e)
 {
     CardReader cr;
     String name = (String)CardReaderListBox.SelectedItem;
     if (name != null) {
         cr = cri.GetCardReader(name);
         String sdate = PickDateCalendar.SelectionStart.ToShortDateString();
         String tdate = TimePicker.Value.ToShortTimeString();
         DateTimeConverter dateC = new DateTimeConverter();
         DateTime date = (DateTime)dateC.ConvertFromString(String.Concat(sdate, " ", tdate));
         CardReaderPanel crp = new CardReaderPanel(cr, date);
         crp.Show();
     }
 }
 public void TurnTimeKeeperOn(CardReaderPanel panel)
 {
     timeKeeper = new Timer(timeKeeperTimeOut);
     timeKeeper.Elapsed += new ElapsedEventHandler(OnTimeKeeperTimeOut);
     timeKeeper.Start();
     this.panel = panel;
 }
 public void TurnAlarmTimerOn(CardReaderPanel panel)
 {
     alarmTimer = new Timer(alarmTimeOut);
     alarmTimer.Elapsed += new ElapsedEventHandler(OnAlarmTimeOut);
     alarmTimer.Start();
     this.panel = panel;
 }
 public bool ReadCard(int cardNum, CardReaderPanel panel)
 {
     Card c = DoorAccessController.Instance.ValidateCard(cardNum);
     if (activityMode && c != null) {
         curPerson = IdentifyPerson(c);
         attempts = 0;
         return true;
     }
     return false;
 }