예제 #1
0
        void SetUIAppearance(object sender, EventArgs e)
        {
            SetUIDelegate delgate = null;

            delgate += new SetUIDelegate(SetPoundValue);
            while (!this.IsHandleCreated)
            {
                ;
            }
            this.BeginInvoke(delgate, null);
        }
 /// <summary>
 /// 对电子标签事件进行委托处理
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 public void SetUIICCard(object sender, EventArgs args)
 {
     try
     {
         SetUIDelegate delgate = null;
         delgate += new SetUIDelegate(SetICCValue);
         while (!this.IsHandleCreated) { ;}
         this.BeginInvoke(delgate, null);//将SetICCValue委托方法在窗体控件线程上执行
     }
     catch (Exception ex)
     {
         Log.WriteLog("电子标签委托", ex.ToString());
     }
 }
예제 #3
0
 public void SetUIICCard(object sender, EventArgs args)
 {
     try
     {
         SetUIDelegate delgate = null;
         delgate += new SetUIDelegate(SetICCValue);
         while (!this.IsHandleCreated)
         {
             ;
         }
         this.BeginInvoke(delgate, null);
     }
     catch (Exception ex)
     {
         Log.WriteLog("IC卡 委托", ex.ToString());
     }
 }
예제 #4
0
 void SetUIAppearance(object sender, EventArgs e)
 {
     SetUIDelegate delgate = null;
     delgate += new SetUIDelegate(SetPoundValue);
     while (!this.IsHandleCreated) { ;}
     this.BeginInvoke(delgate, null);
 }