public coverPage() { this.InitializeComponent(); this.DataContextChanged += (s, e) => { ViewModel = DataContext as ViewModels.CoverPageViewModel; }; CoverEventsManager.ResetCoverEventsHeader(0); }
private void ConfirmButton_Click(object sender, RoutedEventArgs e) { DeleteFlyout.Hide(); int index = CoverEventsManagerListView.SelectedIndex; CoverEventsManager.CoverEventsCollection.RemoveAt(index); CoverEventsManager.ResetCoverEventsHeader(index); CoverEventsManager.WriteCoverEventsCollectionData(); if (Tile.tileStatus) { Tile.UpdateTile(); } }
private void selectLang_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (checkInit) { ComboBox langSelector = sender as ComboBox; if (langSelector.SelectedIndex == 0) { ApplicationLanguages.PrimaryLanguageOverride = "zh-CN"; Translation.LangIndex = 0; } else { ApplicationLanguages.PrimaryLanguageOverride = "en-US"; Translation.LangIndex = 1; } Translation.WriteLangData(); Windows.ApplicationModel.Resources.Core.ResourceContext.GetForCurrentView().Reset(); Windows.ApplicationModel.Resources.Core.ResourceContext.GetForViewIndependentUse().Reset(); CoverEventsManager.ResetCoverEventsHeader(0); CoverEventsManager.WriteCoverEventsCollectionData(); DisplayLangDialog(); } }
public coverPage() { this.InitializeComponent(); CoverEventsManager.ResetCoverEventsHeader(0); CoverEventsCollection = CoverEventsManager.GetCoverEvents(); }