Ejemplo n.º 1
0
        /// <summary>
        /// Saves the filter settings
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ApplicationBarIconButton_Click(object sender, EventArgs e)
        {
            //Get the selected items from all the list pickers
            string loc   = (locationPicker.SelectedItem as Item).Name;
            string cat   = (categoryPicker.SelectedItem as Item).Name;
            string agent = (agencyPicker.SelectedItem as Item).Name;


            if (loc == "ninguna")
            {
                loc = "";
            }
            if (cat == "ninguna")
            {
                cat = "";
            }
            if (agent == "ninguna")
            {
                agent = "";
            }

            currentFilters.Location = loc;
            currentFilters.Category = cat;
            currentFilters.Agency   = agent;
            currentFilters.Update   = true;

            currentFilters.SaveSettings();
            NavigationService.GoBack();
        }