示例#1
0
        public void setPicTransactionPage()
        {
            PicTransationPath PicTransation = new PicTransationPath();

            if (PicTransation.lstPicPath.Count <= 0)
            {
                return;
            }

            foreach (string strTemp in PicTransation.lstPicPath)
            {
                PicTransationControl newPage = new PicTransationControl();
                PicInfo PicTempInfo          = new PicInfo();
                PicTempInfo.nHeight    = 780;
                PicTempInfo.nWidth     = 1038;
                PicTempInfo.strImgLink = strTemp;
                newPage.DataContext    = PicTempInfo;
                myPicTransationPageQueue.Enqueue(newPage);
                currentPage = newPage;
            }

            //pageTransitionControl.ShowPage(currentPage);
            getThePicChangeTime();
            creatThePicChangeThread();
        }
示例#2
0
 void bw_DoWork(object sender, DoWorkEventArgs e)
 {
     while (true)
     {
         if (myPicTransationPageQueue.Count > 0)
         {
             System.Threading.Thread.Sleep(m_nChangeTime);
             currentPage = myPicTransationPageQueue.Dequeue();
             myPicTransationPageQueue.Enqueue(currentPage);
             //pageTransitionControl.ShowPage(currentPage);
         }
         else
         {
             break;
         }
     }
 }