예제 #1
0
파일: StockPanel.cs 프로젝트: wpmyj/MesFile
 private void ZKDataInit()
 {
     try
     {
         if (!CylinderBgWait.IsBusy)
         {
             CylinderBgWait.RunWorkerAsync("GetZKLData");
         }
     }
     catch (Exception ex)
     {
         Utils.Logger.Error(ex.ToString());
     }
 }
예제 #2
0
파일: StockPanel.cs 프로젝트: wpmyj/MesFile
        private SetGridKanbanCallbak setGridKanbanCallbak = null;  //订阅委托事件,用于处理左下角异步修改控件值的情况


        #endregion

        #region Event

        /// <summary>
        /// 定时器更新三个控件的值
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void timer1_Tick(object sender, EventArgs e)
        {
            try
            {
                if (!BgWait.IsBusy)
                {
                    BgWait.RunWorkerAsync("GetCrafData");
                }

                if (!BgWaitDrumDry.IsBusy)
                {
                    ZGNullColor.Items.Clear();
                    ZGFundaVW.Items.Clear();
                    listView1.Items.Clear();
                    BgWaitDrumDry.RunWorkerAsync("GetInitDrumDryData");
                }


                if (!BgWaitStockArea.IsBusy)
                {
                    listView2.Items.Clear();
                    StockFundaVW.Items.Clear();
                    BgWaitStockArea.RunWorkerAsync("GetInitRFIDData");
                }


                if (!CylinderBgWait.IsBusy)
                {
                    CylinderBgWait.RunWorkerAsync("GetZKLData");
                }
            }
            catch (Exception ex)
            {
                Utils.Logger.Error(ex.ToString());
            }
        }