public static void Main(string[] args) { ConsoleDisplayN18.setConsoleSize(); /*ConsoleDisplayN18.Clear(); ConsoleDisplayN18.WriteLine("Size Display : " + Console.BufferWidth + "x" + Console.BufferHeight); ConsoleDisplayN18.WriteLine("Line 2"); ConsoleDisplayN18.WriteLine("Line 3"); ConsoleDisplayN18.WriteLine("Line 4"); ConsoleDisplayN18.WriteLine("Line 5"); ConsoleDisplayN18.WriteLine("0123456789X123........456789X123456___________789X12345"); ConsoleDisplayN18.WriteLine("Line 9\nLine 10\nLine 11\nLine 12\nLine 13"); */ State startState = new SplashScreenState(); ErrorState errorState = new ErrorState(); _Context = new Context(startState, errorState); _Context.Start(); }
public static void Main(string[] args) { ConsoleDisplayN18.setConsoleSize(); /*ConsoleDisplayN18.Clear(); * ConsoleDisplayN18.WriteLine("Size Display : " + Console.BufferWidth + "x" + Console.BufferHeight); * ConsoleDisplayN18.WriteLine("Line 2"); * ConsoleDisplayN18.WriteLine("Line 3"); * ConsoleDisplayN18.WriteLine("Line 4"); * ConsoleDisplayN18.WriteLine("Line 5"); * ConsoleDisplayN18.WriteLine("0123456789X123........456789X123456___________789X12345"); * ConsoleDisplayN18.WriteLine("Line 9\nLine 10\nLine 11\nLine 12\nLine 13"); */ State startState = new SplashScreenState(); ErrorState errorState = new ErrorState(); _Context = new Context(startState, errorState); _Context.Start(); }
public Context(State startState, ErrorState errorState) { _startState = startState; _errorState = errorState; _precedentStates = new Queue(); }