Exemple #1
0
 public void LastSeatRun()
 {
     clientObject = SystemObject.GetInstance();
     GetLastSeat();
     MyLastSeatSumTime         = new SeatManage.SeatManageComm.TimeLoop(30 * 1000);
     MyLastSeatSumTime.TimeTo += new EventHandler(MyLastSeatSumTime_TimeTo);
     MyLastSeatSum             = new Thread(new ThreadStart(MyLastSeatSumTime.TimeStrat));
     MyLastSeatSum.Start();
 }
 public void LastSeatRun()
 {
     _LastSeatCountSum = SeatManage.Bll.TerminalOperatorService.LastSeatCount(clientObject.ClientSetting.DeviceSetting.Rooms);
     OnPropertyChanged("LastSeatCountSum");
     MyLastSeatSumTime         = new SeatManage.SeatManageComm.TimeLoop(30 * 1000);
     MyLastSeatSumTime.TimeTo += new EventHandler(MyLastSeatSumTime_TimeTo);
     timeDateTimeShow          = new SeatManage.SeatManageComm.TimeLoop(1000);
     MyLastSeatSum             = new Thread(new ThreadStart(timeDateTimeShow.TimeStrat));
     MyLastSeatSum.Start();
 }
Exemple #3
0
 public void ShowTimeRun()
 {
     NowDateTime              = ServiceDateTime.Now;
     timeDateTimeShow         = new SeatManage.SeatManageComm.TimeLoop(1000);
     timeDateTimeShow.TimeTo += new EventHandler(timeDateTimeShow_TimeTo);
     showTimeThread           = new Thread(new ThreadStart(timeDateTimeShow.TimeStrat));
     showTimeThread.Start();
     timeDateTimeSync         = new SeatManage.SeatManageComm.TimeLoop(300000);
     timeDateTimeSync.TimeTo += new EventHandler(timeDateTimeSync_TimeTo);
     syncTimeThread           = new Thread(new ThreadStart(timeDateTimeSync.TimeStrat));
     syncTimeThread.Start();
 }
 /// <summary>
 /// 执行图片切换
 /// </summary>
 public void ImageChangeRun()
 {
     SchoolNotices = OperateResult.SystemObject.GetInstance().SchoolNote;
     ViewModel.MainWindow_ViewModel.SchoolNotices = SchoolNotices.Count();
     noticeNum = 0;
     if (SchoolNotices.Count > 0)
     {
         NowShowImage = new System.Windows.Media.Imaging.BitmapImage(new Uri(Apppath + "NoteImage\\" + SchoolNotices[noticeNum].NoteImagePath, UriKind.RelativeOrAbsolute));
     }
     BtnVisible();
     ImgTime             = new SeatManage.SeatManageComm.TimeLoop(10 * 1000);
     ImgTime.TimeTo     += new EventHandler(ImgTime_TimeTo);
     ImgTimeStop         = new SeatManage.SeatManageComm.TimeLoop(10 * 1000);
     ImgTimeStop.TimeTo += new EventHandler(ImgTimeStop_TimeTo);
     ImgTime.TimeStrat();
 }
        private SystemObject()
        {
            //设置定时器,间隔10s执行一次阅览室设置更新
            timeloop         = new SeatManage.SeatManageComm.TimeLoop(20000);
            timeloop.TimeTo += timeloop_TimeTo;
            try
            {
                _RegulationRulesSet = GetRegulationRulesSetting();

                GetAdvert();
                //SchoolLogoImagesResource = GetSchoolLogoBitmapImageResource(_clientSetting.DeviceSetting);
                timeloop.TimeStrat();
            }
            catch
            {
                throw;
            }
        }
        private SystemObject()
        {
            //设置定时器,间隔10s执行一次阅览室设置更新
            timeloop         = new SeatManage.SeatManageComm.TimeLoop(20000);
            timeloop.TimeTo += timeloop_TimeTo;
            try
            {
                _RegulationRulesSet = GetRegulationRulesSetting();
                _clientSetting      = GetClientSet();
                if (_clientSetting == null)
                {
                    return;
                }

                GetAdvert();
                timeloop.TimeStrat();
            }
            catch
            {
                throw;
            }
        }
        private SystemObject()
        {
            //设置定时器,间隔10s执行一次阅览室设置更新
            _timeloop         = new SeatManage.SeatManageComm.TimeLoop(20000);
            _timeloop.TimeTo += timeloop_TimeTo;
            try
            {
                _regulationRulesSet = GetRegulationRulesSetting();
                _clientSetting      = GetClientSet();
                _closeCheckPassword = GetClosePw();
                if (_clientSetting == null)
                {
                    return;
                }

                GetAdvert();
                _timeloop.TimeStrat();
            }
            catch (Exception ex)
            {
                SeatManage.SeatManageComm.WriteLog.Write("初始化终端设置失败" + ex.Message);
                throw;
            }
        }