Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading;
- namespace ConsoleApplication2
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.ForegroundColor = ConsoleColor.DarkGreen;
- MainMenu();
- }
- static void MainMenu()
- {
- Logo("Please enter command.");
- Console.WriteLine("> Access system information");
- N();
- Console.WriteLine("> Access user information");
- N();
- Console.WriteLine("> Quit");
- N(); N(); N(); N(); N(); N(); N(); N();
- Console.Write("> ");
- string MainInput = Console.ReadLine();
- if (MainInput == "Access system information")
- {
- MenuSystem();
- }
- else if (MainInput == "Access user information")
- {
- MenuUser();
- }
- else if (MainInput == "Quit")
- {
- }
- else
- {
- Console.Clear();
- MainMenu();
- }
- }
- static void MenuSystem()
- {
- Logo("Please enter command.");
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine("Robco Industries Unified OS");
- Console.WriteLine("Version 4 build 4.02.682.101");
- Console.WriteLine("Robco Dentium Processing Unit 70175 @ 24 MHZ");
- Console.WriteLine("8 MB Allocated RAM, 3MB Available");
- Console.BackgroundColor = ConsoleColor.Red;
- Console.ForegroundColor = ConsoleColor.White;
- WriteFullLine("**ERROR!**");
- WriteFullLine("CANNOT FIND ACCEPTABLE STORAGE MEDIUM, PLEASE CONTACT YOUR LOCAL ADMINISTRATOR!");
- Console.ResetColor();
- Console.ForegroundColor = ConsoleColor.Green;
- Console.WriteLine("Currently connected to: RobcoServer 8.2");
- N(); N();
- Console.ForegroundColor = ConsoleColor.DarkGreen;
- Console.WriteLine("> Initiate system purge");
- N();
- Console.WriteLine("> Back");
- N();
- N();
- Console.Write("> ");
- string SystemInput = Console.ReadLine();
- if (SystemInput == "Initiate system purge")
- {
- SystemPurge();
- }
- else if (SystemInput == "Back")
- {
- MainMenu();
- }
- else
- {
- MenuSystem();
- }
- }
- static void SystemPurge()
- {
- Logo("");
- Console.Write("Commencing system purge");
- Wait(".", 1, 5);
- N();
- Console.Write("Flashing system files");
- Wait(".", 1, 5);
- N();
- }
- static void MenuUser()
- {
- Logo("Please enter command.");
- }
- static void WriteFullLine(string value)
- {
- // Color entire line
- Console.WriteLine(value.PadRight(Console.WindowWidth - 1));
- }
- static void Logo(string warning)
- {
- Console.Clear();
- // Logo output
- WriteFullLine("╔═════════════════════════════════════════════════════════════════════════════╗");
- WriteFullLine("║ ROBCO INDUSTRIES UNIFIED OPERATING SYSTEM ║");
- WriteFullLine("║ COPYRIGHT 2075-2077 ROBCO. INDUSTRIES ║");
- WriteFullLine("║ -VERSION 4- ║");
- WriteFullLine("╚═════════════════════════════════════════════════════════════════════════════╝");
- Console.WriteLine(warning);
- N();
- N();
- }
- static void N()
- {
- Console.WriteLine();
- }
- static void Wait(string text, int delay, int repeat)
- {
- TimeSpan interval = new TimeSpan(0, 0, delay);
- for (int i = 0; i < repeat; i++)
- {
- Console.Write(text);
- Thread.Sleep(interval);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement