Пример #1
0
 void BindEvent()
 {
     CSPersonnel.RegisterProcessingIndexChangedListener(SetNpcProcessingIndex);
     CSPersonnel.RegisterProcessingIndexInitListener(InitNpcProcessingIndex);
     if (CSUI_MainWndCtrl.Instance != null && CSUI_MainWndCtrl.Instance.CollectUI != null)
     {
         uiObj = CSUI_MainWndCtrl.Instance.CollectUI;
         uiObj.e_InitCollectEvent  += InitUI;
         uiObj.e_UpdateCollect     += UpdateDataToUi;
         uiObj.e_AddtoClick        += OnAddClick;
         uiObj.e_RemoveEvent       += OnRemoveClick;
         uiObj.e_StartClick        += TryStartProcessing;
         uiObj.e_ProcessChoseEvent += OnSelectProcess;
         uiObj.e_StopClick         += TryStop;
         uiObj.e_AutoClick         += SetAuto;
         //lz-2016.07.14 SetRunCount操作事件
         uiObj.e_SetRunCountEvent += OnSetRunCount;
     }
 }