Example #1
0
 private void ListViewInit()
 {
     try
     {
         if (!BgWaitDrumDry.IsBusy)
         {
             BgWaitDrumDry.RunWorkerAsync("GetInitDrumDryData");
         }
     }
     catch (Exception ex)
     {
         Utils.Logger.Error(ex.ToString());
     }
 }
Example #2
0
        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());
            }
        }