/// <summary>
 /// Populates the page with content passed during navigation. Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="Common.NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session. The state will be null the first time a page is visited.</param>
 private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
     IsLoading = true;
     var incorrectSetBehavior = SettingsManager.GetSetting<int>("IncorrectSetBehavior", false, 0);
     IncorrectBehaviorBox.SelectedIndex = incorrectSetBehavior;
     (SettingsManager.GetSetting<bool>("AutoDeal", false, false) ? AutoDealButtonTrue : AutoDealButtonFalse).IsChecked = true;
     (SettingsManager.GetSetting<bool>("EnsureSets", false, false) ? EnsureSetsButtonTrue : EnsureSetsButtonFalse).IsChecked = true;
     PenaltyOnDealWithSetsBox.SelectedIndex = SettingsManager.GetSetting<bool>("PenaltyOnDealWithSets", false, false) ? 1 : 0;
     DrawThreeBox.SelectedIndex = SettingsManager.GetSetting<bool>("DrawThree", false, true) ? 1 : 0;
     TrainingModeBox.IsChecked = SettingsManager.GetSetting<bool>("TrainingMode", false, false);
     InstantDealBox.IsChecked = SettingsManager.GetSetting<bool>("InstantDeal", false, false);
     IsLoading = false;
 }
Пример #2
0
 /// <summary>
 /// Populates the page with content passed during navigation. Any saved state is also
 /// provided when recreating a page from a prior session.
 /// </summary>
 /// <param name="sender">
 /// The source of the event; typically <see cref="Common.NavigationHelper"/>
 /// </param>
 /// <param name="e">Event data that provides both the navigation parameter passed to
 /// <see cref="Frame.Navigate(Type, Object)"/> when this page was initially requested and
 /// a dictionary of state preserved by this page during an earlier
 /// session. The state will be null the first time a page is visited.</param>
 private void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
 {
 }