Exemplo n.º 1
0
 public LocationSelectionPage(BreatheKlerePage parent, bool isHomeSelected = true)
 {
     InitializeComponent();
     this.parent         = parent;
     this.isHomeSelected = isHomeSelected;
     timer = new Stopwatch();
     rest  = new RESTService();
     if (isHomeSelected)
     {
         locationEntry.Placeholder = "Choose start point";
     }
 }
Exemplo n.º 2
0
        public LocationSelectionPage(BreatheKlerePage parent, bool isHomeSelected = true)
        {
            InitializeComponent();
            this.parent         = parent;
            this.isHomeSelected = isHomeSelected;
            timer = new Stopwatch();
            rest  = new RESTService();
            if (isHomeSelected)
            {
                locationEntry.Placeholder = "Choose start point";
            }
            recentSearchList = new List <string>();

            if (App.Current.Properties.ContainsKey("recentList"))
            {
                recentSearchList = JsonConvert.DeserializeObject <List <string> >(App.Current.Properties["recentList"].ToString());
                string[] reverseList = recentSearchList.ToArray();
                Array.Reverse(reverseList);
                recentSearchList = new List <string>(reverseList);
            }
        }