示例#1
0
 void MyLastSeatSumTime_TimeTo(object sender, EventArgs e)
 {
     MyLastSeatSumTime.TimeStop();
     _LastSeatCount = SeatManage.Bll.TerminalOperatorService.LastSeatCount(rooms);
     OnPropertyChanged("LastSeat");
     MyLastSeatSumTime.TimeStrat();
 }
示例#2
0
        /// <summary>
        /// 执行图片切换
        /// </summary>
        public void ImageChangeRun()
        {
            SchoolNotices = OperateResult.SystemObject.GetInstance().SchoolNote;
            PromotionAd   = OperateResult.SystemObject.GetInstance().PromotionAdvert;
            UserGuide     = OperateResult.SystemObject.GetInstance().UserGuide;
            noticeNum     = 0;
            promotionNum  = 0;
            guideNum      = 0;
            if (UserGuide != null && UserGuide.ImageFilePath.Count > 0)
            {
                NowShowImage = new System.Windows.Media.Imaging.BitmapImage(new Uri(Apppath + "UserGuide\\" + UserGuide.ImageFilePath[guideNum], UriKind.RelativeOrAbsolute));
                NowTap       = AdType.None;
            }
            if (PromotionAd.Count > 0)
            {
                NowShowImage = new System.Windows.Media.Imaging.BitmapImage(new Uri(Apppath + "PromotionImage\\" + PromotionAd[promotionNum].AdImagePath, UriKind.RelativeOrAbsolute));
                NowTap       = AdType.PromotionAd;
            }
            if (SchoolNotices.Count > 0)
            {
                NowShowImage = new System.Windows.Media.Imaging.BitmapImage(new Uri(Apppath + "NoteImage\\" + SchoolNotices[noticeNum].NoteImagePath, UriKind.RelativeOrAbsolute));
                NowTap       = AdType.SchoolNotice;
            }
            BtnVisible();
            if (ImageSwitch != null)
            {
                ImageSwitch(this, new EventArgs());
            }


            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();
        }
示例#3
0
 /// <summary>
 /// 图片停止切换
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void ImgTimeStop_TimeTo(object sender, EventArgs e)
 {
     ImgTimeStop.TimeStop();
     ImgTime.TimeStrat();
 }
示例#4
0
 public void ImageChangeStop()
 {
     ImgTime.TimeStop();
     ImgTimeStop.TimeStop();
     ImgTimeStop.TimeStrat();
 }