예제 #1
0
 private static void printLogoConsole()
 {
     if (RH.onRealHardware() == true)
     {
         Console.Clear();
         Console.WriteLine("     _____________________________________");
         Console.WriteLine("");
         Console.WriteLine("      ##### ######  #####    #####  #####");
         Console.WriteLine("     #        #    #   #    #   #  #");
         Console.WriteLine("     ####    #    #####    #   #  ##### ");
         Console.WriteLine("       #    #    #   #    #   #      #");
         Console.WriteLine("  #####  ###### #   #    #####  #####     Version 1.2 on Limited Mode");
         Console.WriteLine("__________________________________");
     }
     else
     {
         Console.Clear();
         Console.WriteLine("     _____________________________________");
         Console.WriteLine("");
         Console.WriteLine("      ##### ######  #####    #####  #####");
         Console.WriteLine("     #        #    #   #    #   #  #");
         Console.WriteLine("     ####    #    #####    #   #  ##### ");
         Console.WriteLine("       #    #    #   #    #   #      #");
         Console.WriteLine("  #####  ###### #   #    #####  #####     Version 1.2");
         Console.WriteLine("__________________________________");
     }
 }
예제 #2
0
        protected override void BeforeRun()
        {
            //check for real hardware
            if (RH.onRealHardware() == true)
            {
                RealH = "true";
                RH.RealHardwareAlert();
            }
            //starts the filesystem stuff
            fs = new Sys.FileSystem.CosmosVFS();
            Sys.FileSystem.VFS.VFSManager.RegisterVFS(fs);
            //Check for Username and start Setup
            if (RH.onRealHardware() == true)
            {
            }
            else
            {
                if (File.Exists(@"0:\SYSTEM\Username.set"))
                {
                    username = File.ReadAllText(@"0:\SYSTEM\Username.set");
                }

                else
                {
                    Setup.SetupStart();
                }

                if (File.Exists(@"0:\SYSTEM\Date&Time.set"))
                {
                    if (File.ReadAllText(@"0:\SYSTEM\Date&Time.set").Contains("12hour"))
                    {
                        time = "12hour";
                    }
                    else
                    {
                        time = "24hour";
                    }
                }
            }

            //startup screen
            Console.ResetColor();
            Bcolor();
            Console.Clear();
            printLogoConsole();
            Console.WriteLine("\n");
            Console.WriteLine("Type cmd for a list of commands and Apps. ");
            Console.WriteLine("");

            //check for calender
            if (RH.onRealHardware() == true)
            {
            }
            else
            {
                var root = @"0:\";
                Directory.SetCurrentDirectory(root);
                if (File.Exists(DateTime.Now.Month + "-" + DateTime.Now.Day + "-" + DateTime.Now.Year + ".cal"))
                {
                    Console.BackgroundColor = ConsoleColor.Black;
                    Console.ForegroundColor = ConsoleColor.Yellow;
                    Console.WriteLine("Reminder: You have a Calender for Today! Type 'open " + DateTime.Now.Month + "-" + DateTime.Now.Day + "-" + DateTime.Now.Year + ".cal' to veiw it.\n");
                    Console.ResetColor();
                }
            }
        }