public HCSCM_entityset_manager_bindingRfid(SortedList SLdata)
        {
            InitializeComponent();
            #region buttont图片加载
            this.but_cancel.Image       = ResourcesImageHelper.Instance.GetResourcesImage("Common.Buttom", "cancel", EnumImageType.PNG);
            this.but_save.Image         = ResourcesImageHelper.Instance.GetResourcesImage("Common.Buttom", "Preservation", EnumImageType.PNG);
            this.but_binding.Image      = ResourcesImageHelper.Instance.GetResourcesImage("Common.Buttom", "reBind", EnumImageType.PNG);
            this.but_remove.Image       = ResourcesImageHelper.Instance.GetResourcesImage("Common.Buttom", "removeBinding", EnumImageType.PNG);
            this.but_feelingEmpty.Image = ResourcesImageHelper.Instance.GetResourcesImage("Common.Buttom", "empty", EnumImageType.PNG);
            #endregion
            //设置窗体图标
            this.Icon = new Icon(ResourcesImageHelper.Instance.GetResourcesStream("Common.icon", "MainIco", EnumImageType.ICO));
            this.Text = ConfigurationManager.AppSettings["SystemName"].ToString() + "--绑定RFID";
            //赋值并显示信息
            tb_setName.Text = SLdata["器械名称"].ToString();
            tb_iNumber.Text = SLdata["器械数量"].ToString();

            set_id         = SLdata["实体包id"].ToString();
            instruments_id = SLdata["器械编号"].ToString();
            set_code       = SLdata["实体包条码"].ToString();
            rfidCode       = Loadclass();
            if (rfidCode != null)
            {
                rfidCode.GetNoneAddData += AddInstrumentData;
                rfidCode.Connecttion();
            }
            try
            {
                if (rfidCode == null || !rfidCode.IsStartScan)//判断有没有连接上RFID机器
                {
                    MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("reconnectRfid", EnumPromptMessage.warning), "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    IsShow = false;
                }
                else
                {
                    IsShow = true;
                    selBindingRFID();
                    //连接RFID
                    repeatData = LoadRepeatRfidTable();
                    repeatRFID = LoadRepeatRfid();
                }
            }
            catch (Exception)
            {
                MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("reconnectRfid", EnumPromptMessage.warning), "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
 /// <summary>
 /// 窗体加载事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnDialogLoad(object sender, EventArgs e)
 {
     InitializeRFID_InTable();
     InitalizeSetInfo();
     RefreshDataGrid();
     try
     {
         rfidCode = Loadclass();
         if (rfidCode != null)
         {
             rfidCode.GetNoneAddData += AddInstrumentData;
             rfidCode.Connecttion();
         }
         if (rfidCode == null || !rfidCode.IsStartScan)
         {
             this.Invoke(new Action(() => { MessageBox.Show("连接RFID读取器失败"); }));
         }
     }
     catch
     {
         MessageBox.Show("连接RFID读取器失败");
     }
     _isShow = true;
 }