private async Task UpdateBackupFilesList() { BackupFilesCombo.Items.Clear(); // Get backuped date string [] bkDate = AppData.GetBackupDate(); if (bkDate.Length <= 0) { BackupFilesCombo.IsEnabled = false; RecoveryBackupGetButton.IsEnabled = false; await GlbFunc.ShowMessage("MSG_BUCKUP_FILE_NOT_EXIST", "There are no Backup files.").ConfigureAwait(true); return; } else { BackupFilesCombo.SelectedIndex = 0; BackupFilesCombo.IsEnabled = true; RecoveryBackupGetButton.IsEnabled = true; } // Add backup file names to combo box for (int i = 0; i < bkDate.Length; i++) { BackupFilesCombo.Items.Add(bkDate[i]); } }
/// <summary> /// It called on starting of the application. /// It decide that configurations is made up or not, and show the next page. /// </summary> protected override async void OnNavigatedTo(NavigationEventArgs e) { if (!await AppData.IsInitialized().ConfigureAwait(true)) { // If first time, show FileSettingsPage. await GlbFunc.ShowMessage("MSG_INITIAL_USE_MSG", "On first use, specify password file name and master pasword.").ConfigureAwait(true); MainPageConfiguRadio.IsChecked = true; } else { MainPageAccountListRadio.IsChecked = true; } }