/// <summary>
        /// Invoked when this page is about to be displayed in a Frame.
        /// </summary>
        /// <param name="e">Event data that describes how this page was reached.
        /// This parameter is typically used to configure the page.</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            string cardSetID = e.Parameter.ToString();

            currentCardSet = currentApp.AppWideUserSet.AllCardSets.FirstOrDefault(x => x.ID == cardSetID);

            OverviewCardDetail_Page_CardGrid.DataContext = currentCardSet;
        }
示例#2
0
		public CardSet ComposeToLearnCardSet(ICardSet cardSet, DateTime expectedLearnDay)
		{
			string learnSetName = cardSet.Name;
			string learnSetDescription = "This is the set of cards which are composed te be shown on " +
											String.Format("{0:D}", expectedLearnDay) + ".";

			CardSet tmpSet = new CardSet(learnSetName, learnSetDescription);

			tmpSet.Cards = new ObservableCollection<Card>(cardSet.Cards.Where(x => x.ShowDate <= expectedLearnDay).ToList<Card>());

			return tmpSet;
		}
示例#3
0
 //Filter only the relevant (to learn) sets 
 public CardSet FilterLearnSet(ICardSet cardSet, DateTime expectedLearnDay)
 {
     CardSet retval = new CardSet(cardSet.Name, cardSet.Description);
     retval.Cards = new CardExplorerNew().FilterLearnSet(cardSet, expectedLearnDay);
     return retval;
 }