コード例 #1
0
ファイル: MainPage.xaml.cs プロジェクト: deucks/Battery-Guru
 public void checkLastUpdate()
 {
     if (SystemEndPoints.minutesTillLastUpdate() > 5)
     {
         MessageBoxResult m = MessageBox.Show("The app is not updating properly to log battery data." + Environment.NewLine + Environment.NewLine + "This may be the result of other apps running in the background that are not needed." + Environment.NewLine + Environment.NewLine + "Would you like to see tips on how to fix this?", "BatteryGuru not updating?", MessageBoxButton.OKCancel);
         if (m == MessageBoxResult.OK)
         {
             NavigationService.Navigate(new Uri("/NotUpdating.xaml", UriKind.Relative));
         }
     }
 }