Example #1
0
        private async void LoadKeywords()
        {
            LocalStorageProvider storage = new LocalStorageProvider();

            var directory = Directory.CreateDirectory(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Iterations", "Common"));

            StorageResult = await storage.LoadKeywords(directory.FullName);

            if (StorageResult.Result != null)
            {
                string val = StorageResult.Result.ToString();
                ObservableCollection <string> col = new ObservableCollection <string>();
                string[] tmp = val.Split(',');

                foreach (string kword in tmp)
                {
                    col.Add(kword.Trim());
                }

                AvailableKeywords = col;
            }
        }