private void Form1_Load(object sender, System.EventArgs e) { CScan = new CARDSCAN.SerialPortScanClass(); CScan.StartScanner("COM2"); this.CScan.SwipeReceived += new CARDSCAN._ISerialPortScanEvents_SwipeReceivedEventHandler(CardReaderEvent); ControlButtons = new ArrayList(); ControlButtons.Add(imgControl_FastRewind); ControlButtons.Add(imgControl_Rewind); ControlButtons.Add(imgControl_Stop); ControlButtons.Add(imgControl_Play); ControlButtons.Add(imgControl_Pause); ControlButtons.Add(imgControl_Forward); ControlButtons.Add(imgControl_FastForward); ControlButtons.Add(imgLSynchronize); IsControlButtonEnabled = new ArrayList(); btnPlayerButtons = new ArrayList(); btnPlayerButtons.Add(imgFastRewind); btnPlayerButtons.Add(imgRewind); btnPlayerButtons.Add(imgStop); btnPlayerButtons.Add(imgPlay); btnPlayerButtons.Add(imgPause); btnPlayerButtons.Add(imgForward); btnPlayerButtons.Add(imgFastForward); //btnPlayerButtons.Add(imgSynchronize); for(int i=0;i<btnPlayerButtons.Count;i++) { CheckBox NewValue = new CheckBox(); NewValue.Checked = false; IsControlButtonEnabled.Add(NewValue); } PlayerButtons(false); pnlLogin.BringToFront(); pnlRecordingTab.Visible = false; pnlNotesTab.Visible = false; if(LUser != null) InitializeUserData(); ShowViewerControls(false); UP.EnableContextMenu(0); UP.EnableFlowControl(0,0); UP.AdjustVolume(100); UP2.EnableContextMenu(0); UP2.EnableFlowControl(0,0); UP2.AdjustVolume(0); UPCamera.EnableContextMenu(0); UPCamera.EnableFlowControl(0,0); UPCamera.AdjustVolume(100); this.Focus(); this.Select(); }