示例#1
0
 private void WarmTaskSuccessUpdate(string ColdLocation, string WarmLocation)
 {
     ThreadSafeHelper.UIThread(this, () =>
     {
         StoreMessage Message = Read(Convert.ToInt32(WarmLocation), "", 2);
         switch (Convert.ToInt32(WarmLocation))
         {
         }
     });
 }
示例#2
0
 private void WarmTimeEvent(int Store, string Time, int Expired) //0->Warming , 1->Success, 2->Expired 1st, 3->Expired 2rd
 {
     ThreadSafeHelper.UIThread(this, () =>
     {
         #region 無資料
         if (Expired == -1)
         {
             switch ((Store + 1))
             {
             }
         }
         #endregion
         else
         {
             StoreMessage Message = Read(Store + 1, "", 2);
             switch ((Store + 1))
             {
             }
         }
     });
 }
示例#3
0
        private void ColdInformationChange(int Location, string SlotID)
        {
            ThreadSafeHelper.UIThread(this, () =>
            {
                if (SlotID == "")
                {
                    switch (Location)
                    {
                        //case 1:
                        //    TbSlot1.Text = "";
                        //    TbInstoreTime1.Text = "";
                        //    TBExpiredTime1.Text = "";
                        //    break;

                        //case 2:
                        //    TbSlot2.Text = "";
                        //    TbInstoreTime2.Text = "";
                        //    TBExpiredTime2.Text = "";
                        //    break;

                        //case 3:
                        //    TbSlot3.Text = "";
                        //    TbInstoreTime3.Text = "";
                        //    TBExpiredTime3.Text = "";
                        //    break;

                        //case 4:
                        //    TbSlot4.Text = "";
                        //    TbInstoreTime4.Text = "";
                        //    TBExpiredTime4.Text = "";
                        //    break;

                        //case 5:
                        //    TbSlot5.Text = "";
                        //    TbInstoreTime5.Text = "";
                        //    TBExpiredTime5.Text = "";
                        //    break;
                        //case 6:
                        //    TbSlot6.Text = "";
                        //    TbInstoreTime6.Text = "";
                        //    TBExpiredTime6.Text = "";
                        //    break;

                        //case 7:
                        //    TbSlot7.Text = "";
                        //    TbInstoreTime7.Text = "";
                        //    TBExpiredTime7.Text = "";
                        //    break;

                        //case 8:
                        //    TbSlot8.Text = "";
                        //    TbInstoreTime8.Text = "";
                        //    TBExpiredTime8.Text = "";
                        //    break;
                    }
                    return;
                }
                else
                {
                    StoreMessage NewStoreMessage = Read(Location, SlotID, 1);
                    if (NewStoreMessage == null)
                    {
                        return;
                    }
                    switch (Location)
                    {
                        //case 1:
                        //    TbSlot1.Text = SlotID;
                        //    TbInstoreTime1.Text = Convert.ToDateTime(NewStoreMessage.InColdTime).ToString("yyyy-MM-dd");
                        //    TBExpiredTime1.Text = NewStoreMessage.ExpiredTime;
                        //    break;

                        //case 2:
                        //    TbSlot2.Text = SlotID;
                        //    TbInstoreTime2.Text = Convert.ToDateTime(NewStoreMessage.InColdTime).ToString("yyyy-MM-dd");
                        //    TBExpiredTime2.Text = NewStoreMessage.ExpiredTime;
                        //    break;

                        //case 3:
                        //    TbSlot3.Text = SlotID;
                        //    TbInstoreTime3.Text = Convert.ToDateTime(NewStoreMessage.InColdTime).ToString("yyyy-MM-dd");
                        //    TBExpiredTime3.Text = NewStoreMessage.ExpiredTime;
                        //    break;

                        //case 4:
                        //    TbSlot4.Text = SlotID;
                        //    TbInstoreTime4.Text = Convert.ToDateTime(NewStoreMessage.InColdTime).ToString("yyyy-MM-dd");
                        //    TBExpiredTime4.Text = NewStoreMessage.ExpiredTime;
                        //    break;

                        //case 5:
                        //    TbSlot5.Text = SlotID;
                        //    TbInstoreTime5.Text = Convert.ToDateTime(NewStoreMessage.InColdTime).ToString("yyyy-MM-dd");
                        //    TBExpiredTime5.Text = NewStoreMessage.ExpiredTime;
                        //    break;
                        //case 6:
                        //    TbSlot6.Text = SlotID;
                        //    TbInstoreTime6.Text = Convert.ToDateTime(NewStoreMessage.InColdTime).ToString("yyyy-MM-dd");
                        //    TBExpiredTime6.Text = NewStoreMessage.ExpiredTime;
                        //    break;

                        //case 7:
                        //    TbSlot7.Text = SlotID;
                        //    TbInstoreTime7.Text = Convert.ToDateTime(NewStoreMessage.InColdTime).ToString("yyyy-MM-dd");
                        //    TBExpiredTime7.Text = NewStoreMessage.ExpiredTime;
                        //    break;

                        //case 8:
                        //    TbSlot8.Text = SlotID;
                        //    TbInstoreTime8.Text = Convert.ToDateTime(NewStoreMessage.InColdTime).ToString("yyyy-MM-dd");
                        //    TBExpiredTime8.Text = NewStoreMessage.ExpiredTime;
                        //    break;
                    }
                }
            });
        }