// -------------------------------------------

        /*
         * OnBasicEvent
         */
        private void OnBasicEvent(string _nameEvent, params object[] _list)
        {
            if (!this.gameObject.activeSelf)
            {
                return;
            }

            if (_nameEvent == EVENT_SCREENSEARCHRESULTS_LOAD_DATA_SEARCHED)
            {
                UIEventController.Instance.DispatchUIEvent(RequestsController.EVENT_REQUEST_CALL_CONSULT_BY_DISTANCE_RECORDS, m_searchRequest);
            }
            if (_nameEvent == RequestsController.EVENT_REQUEST_RESULT_FORMATTED_RECORDS)
            {
                UIEventController.Instance.DispatchUIEvent(ScreenController.EVENT_FORCE_DESTRUCTION_POPUP);
                List <RequestModel> data = (List <RequestModel>)_list[0];
                if ((int)_list[1] == RequestsController.TYPE_CONSULT_BY_DISTANCE)
                {
                    if (data.Count > 0)
                    {
                        m_slotSearchResultInfoContainer.GetComponent <SlotManagerView>().ClearCurrentGameObject();
                        m_slotSearchResultInfoContainer.GetComponent <SlotManagerView>().ClearCurrentRequests();

                        for (int i = 0; i < data.Count; i++)
                        {
                            RequestModel item = data[i];
                            if ((item.Customer != UsersController.Instance.CurrentUser.Id) && (item.Provider == -1))
                            {
                                m_slotSearchResultInfoContainer.GetComponent <SlotManagerView>().AddNewRequests(item);
                            }
                        }
                        m_slotSearchResultInfoContainer.GetComponent <SlotManagerView>().LoadCurrentPage();
                    }
                }
            }
            if (_nameEvent == SlotRequestView.EVENT_SLOTREQUEST_SELECTED_REQUEST)
            {
                GameObject slotClicked = (GameObject)_list[0];
                if (m_slotSearchResultInfoContainer.GetComponent <SlotManagerView>().CheckSlotExisting(slotClicked))
                {
                    SlotRequestView slotSelected = slotClicked.GetComponent <SlotRequestView>();
                    UIEventController.Instance.DispatchUIEvent(RequestsController.EVENT_REQUEST_CALL_CONSULT_SINGLE_RECORD, slotSelected.Request.Id);
                }
            }
            if (_nameEvent == RequestsController.EVENT_REQUEST_RESULT_FORMATTED_SINGLE_RECORD)
            {
                UIEventController.Instance.DispatchUIEvent(ScreenController.EVENT_FORCE_DESTRUCTION_POPUP);
                RequestModel request = (RequestModel)_list[0];
                if (request != null)
                {
                    MenusScreenController.Instance.CreateNewScreen(ScreenCreateRequestView.SCREEN_DISPLAY_REQUEST, UIScreenTypePreviousAction.HIDE_CURRENT_SCREEN, true, request);
                }
                else
                {
                    string warning     = LanguageController.Instance.GetText("message.error");
                    string description = LanguageController.Instance.GetText("message.request.not.found");
                    MenusScreenController.Instance.CreateNewInformationScreen(ScreenInformationView.SCREEN_INFORMATION, UIScreenTypePreviousAction.KEEP_CURRENT_SCREEN, warning, description, null, "");
                }
            }
            if (_nameEvent == UIEventController.EVENT_SCREENMANAGER_ANDROID_BACK_BUTTON)
            {
                NewSearchPressed();
            }
        }