예제 #1
0
        //Define as funcionalidades deste menu
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            switch (item.ItemId)
            {
            case Resource.Id.menu_search:
                _searchView = new SearchView(this);
                _searchView.SetQuery("Pesquisar", true);
                break;

            case Resource.Id.menu_location:
                RegistrarLocalizacao();
                break;

            case Resource.Id.menu_exitapp:
                Mensagens.MensagemDeLogout(this, this);
                break;

            case Resource.Id.menu_preferences:
                IniciarEditarPerfil(this, _participante);
                //TestarGeolocalizacao();
                break;
            }

            return(base.OnOptionsItemSelected(item));
        }