Ejemplo n.º 1
0
        public List <string> GetPickerOptions()
        {
            List <string> LTypeOptions = new List <string>();

            if (FSelectedCategory.Equals("Violência"))
            {
                LTypeOptions.Add("Assalto");
                LTypeOptions.Add("Roubo");
                LTypeOptions.Add("Furto");
            }
            if (FSelectedCategory.Equals("Desastre"))
            {
                LTypeOptions.Add("Enchente");
            }
            if (FSelectedCategory.Equals("Evento"))
            {
                LTypeOptions.Add("Festa");
                LTypeOptions.Add("Feira");
            }
            if (FSelectedCategory.Equals("Trânsito"))
            {
                LTypeOptions.Add("Trânsito");
                LTypeOptions.Add("Acidente");
            }
            if (FSelectedCategory.Equals("Ambiente"))
            {
                LTypeOptions.Add("Acumulo de lixo");
                LTypeOptions.Add("Mal cheiro");
            }

            return(LTypeOptions);
        }
Ejemplo n.º 2
0
        public IncidentCategoryEnum SetCategory()
        {
            if (FSelectedCategory.Equals("Violência"))
            {
                return(IncidentCategoryEnum.Violence);
            }
            if (FSelectedCategory.Equals("Desastre"))
            {
                return(IncidentCategoryEnum.Disaster);
            }
            if (FSelectedCategory.Equals("Evento"))
            {
                return(IncidentCategoryEnum.Event);
            }
            if (FSelectedCategory.Equals("Trânsito"))
            {
                return(IncidentCategoryEnum.Traffic);
            }
            if (FSelectedCategory.Equals("Ambiente"))
            {
                return(IncidentCategoryEnum.Environment);
            }

            return(IncidentCategoryEnum.Other);
        }