private void PerformGotoMainView()
 {
     if (RequestingMainViewEvent != null)
     {
         if (!DecalInjection.IsDecalInstalled() || !DecalInjection.IsSteelFilterRegistered())
         {
             StringBuilder warning = new StringBuilder();
             if (!DecalInjection.IsDecalInstalled())
             {
                 warning.Append("Decal is not installed properly. ");
             }
             if (!DecalInjection.IsSteelFilterRegistered())
             {
                 warning.Append("SteelFilter is not registered properly. ");
             }
             //Does not seem to work yet; investigate how decal saves enabled
             //if (!DecalInjection.IsSteelFilterEnabled())
             //{
             //    warning.Append("SteelFilter appears to be disabled. ");
             //}
             warning.Append("This may cause issues (such as clients being continually restarted) in advanced mode. Are you sure you want to continue to advanced mode?");
             if (MessageBox.Show(warning.ToString(), "Configuration issue", MessageBoxButton.YesNo, MessageBoxImage.Error) != MessageBoxResult.Yes)
             {
                 return;
             }
         }
         RequestingMainViewEvent(this, new EventArgs());
     }
 }
Example #2
0
 private static bool ShouldWeUseDecal(bool simpleLaunch)
 {
     if (!DecalInjection.IsDecalInstalled())
     {
         // decal not installed, so we obviously don't want to try to use it
         return(false);
     }
     if (simpleLaunch)
     {
         // use decal if the user chose the checkbox to use it
         return(Properties.Settings.Default.InjectDecal);
     }
     else
     { // advanced mode always uses decal if possible
         return(true);
     }
 }