private void RefteshGroupScheduleLinkButton_Tap(object sender, GestureEventArgs e)
        {
            GroupBox.IsEnabled       = false;
            DownloadButton.IsEnabled = false;
            ScheduleList.IsEnabled   = false;
            WebClient wc = new WebClient();

            wc.DownloadStringCompleted += wc_DownloadStringCompleted;
            IsolatedStorageSettings.ApplicationSettings.Remove("DownloadGroupName");

            GroupScheduleLink linkItem = ((List <GroupScheduleLink>)ScheduleList.ItemsSource)[ScheduleList.SelectedIndex];

            IsolatedStorageSettings.ApplicationSettings.Add("DownloadGroupName", linkItem.Name);
            wc.DownloadStringAsync(new Uri(ScheduleUri + linkItem.Name));
        }
        private void GroupName_Tap(object sender, GestureEventArgs e)
        {
            IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;

            settings.Remove("groupname");
            settings.Remove("filename");
            settings.Remove("subgroup");
            GroupScheduleLink linkItem = ((List <GroupScheduleLink>)ScheduleList.ItemsSource)[ScheduleList.SelectedIndex];

            settings.Add("groupname", linkItem.Name);
            settings.Add("filename", linkItem.Filename);
            settings.Add("subgroup", SubgroupScope.All);
            settings.Save();

            NavigationService.GoBack();
        }
        private void DeleteGroupScheduleLinkButton_Tap(object sender, GestureEventArgs e)
        {
            IsolatedStorageFile     storage  = IsolatedStorageFile.GetUserStoreForApplication();
            IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
            GroupScheduleLink       linkItem = ((List <GroupScheduleLink>)ScheduleList.ItemsSource)[ScheduleList.SelectedIndex];

            try
            {
                if (((string)settings["filename"]) == linkItem.Filename)
                {
                    settings.Remove("filename");
                    settings.Save();
                }
            }
            catch (Exception)
            {
            }

            storage.DeleteFile(linkItem.Filename);
            RefreshScheduleList();
        }