/// <summary> /// Initializes the BSoD equivalent, getting the error level, /// error description and the error itself /// </summary> /// <param name="errlvl"></param> /// <param name="errdsc"></param> /// <param name="err"></param> public static void Init(int errlvl, string errdsc, string err) { Console.BackgroundColor = ConsoleColor.DarkRed; Console.Clear(); Console.WriteLine(Msg + err); Console.WriteLine("This means that: "); Console.WriteLine(errdsc); Console.WriteLine("Press any key to restart."); Console.ReadKey(true); Console.ForegroundColor = ConsoleColor.White; Console.BackgroundColor = ConsoleColor.Black; CoreFunc.Reboot(); }
public static void reboot() { CoreFunc.Reboot(); }