コード例 #1
0
 public coverPage()
 {
     this.InitializeComponent();
     this.DataContextChanged += (s, e) =>
     {
         ViewModel = DataContext as ViewModels.CoverPageViewModel;
     };
     CoverEventsManager.ResetCoverEventsHeader(0);
 }
コード例 #2
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();
            }
        }
コード例 #3
0
        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();
            }
        }
コード例 #4
0
ファイル: coverPage.xaml.cs プロジェクト: jhhxll/LightDays
 public coverPage()
 {
     this.InitializeComponent();
     CoverEventsManager.ResetCoverEventsHeader(0);
     CoverEventsCollection = CoverEventsManager.GetCoverEvents();
 }