/// <summary>
 /// Continue button is disabled until valid length password is entered into password box.
 /// This Button is also used to reset Locker.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void ButContinue_Click(object sender, RoutedEventArgs e)
 {
     _ = sender;     // Discard unused parameter.
     _ = e;          // Discard unused parameter.
     if (boolAppResetRequired)
     {
         // Error occurred! App requires a Locker Reset which returns to page SetupFolder().
         mainPage.AppReset(EnumResetApp.ResetLockerFolder);
     }
     else
     {
         PasswordVerify();    // All good so get User's password.
     }
 }
示例#2
0
 /// <summary>
 /// Start Locker reset option.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private async void ButLockerReset_Click(object sender, RoutedEventArgs e)
 {
     _ = sender;     // Discard unused parameter.
     _ = e;          // Discard unused parameter.
     // Reset locker folder?  Reset will not delete any of your data.
     if (await LibMPC.ShowPopupBoxAsync(mainPage.resourceLoader.GetString("UMP_LockerReset_Title"), mainPage.resourceLoader.GetString("UMP_Reset_Msg"), mainPage.resourceLoader.GetString("UMP_Reset_Yes"), mainPage.resourceLoader.GetString("UMP_Reset_No")))
     {
         mainPage.AppReset(EnumResetApp.ResetLockerFolder);
     }
     else
     {
         LibMPC.OutputMsgError(TblkResult, mainPage.resourceLoader.GetString("UMP_Reset_Aborted"));               // Reset aborted.
     }
 }
 /// <summary>
 /// Revert application to default settings..
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private async void ButAppReset_Click(object sender, RoutedEventArgs e)
 {
     _ = sender;     // Discard unused parameter.
     _ = e;          // Discard unused parameter.
     if (await LibMPC.ShowPopupBoxAsync("Reset application?", "Click 'Yes' to reset application to default settings.", "Yes", "No"))
     {
         mainPage.AppReset(EnumResetApp.ResetApp);
         Application.Current.Exit();     // Exit App to complete reset.
     }
 }