private void Window_Loaded(object sender, RoutedEventArgs e) { clientObject = OperateResult.SystemObject.GetInstance(); if (clientObject.ObjCardReader != null) { clientObject.ObjCardReader.CardNoGeted += new SeatManage.ISystemTerminal.IPOS.EventPosCardNo(ObjCardReader_CardNoGeted); clientObject.ObjCardReader.Start(); } }
/// <summary> /// 获得单个SystemObject实例 /// </summary> /// <returns></returns> public static SystemObject GetInstance() { if (_systemObject == null) { lock (Object) { if (_systemObject == null) { return(_systemObject = new SystemObject()); } } } return(_systemObject); }