Exemplo n.º 1
0
 // Check if note box should be displayed before navigating to
 // the MainView and showing the note, avoids it popping up
 // and ignoring other settings
 public static bool NoteBoxShouldBeDisplayed()
 {
     if (Settings.Get(Strings.DeveloperMode).Bool)
     {
         return(true);
     }
     else if (ViewModelHelper.IsDeckAvailable())
     {
         var mode = Data.GetGameMode();
         if (ViewModelHelper.IsModeEnabledForArchetypes(mode))
         {
             return(ViewModelHelper.ModeIsEffectedByRank(mode));
         }
         else if (Settings.Get(Strings.ShowRegularNoteBox).Bool)
         {
             return(ViewModelHelper.ModeIsEffectedByRank(mode));
         }
     }
     return(false);
 }