示例#1
0
 public static void ApplyTheme()
 {
     try
     {
         Tuple <AppTheme, Accent> appStyle = ThemeManager.DetectAppStyle(Application.Current);
         ThemeManager.ChangeAppStyle(Application.Current, ThemeManager.GetAccent(Theme), ThemeManager.GetAppTheme("BaseLight"));
     }
     catch (Exception)
     {
         Dialogs.Error("Couldn't apply theme.");
     }
 }
示例#2
0
 private static void handleResult(bool succeed, string succeedMsg, string failedMsg)
 {
     if (succeed)
     {
         updateStatusBar(succeedMsg);
     }
     else
     {
         updateStatusBar(failedMsg);
         Dialogs.Error(failedMsg);
     }
 }