示例#1
0
 public void Clear(int x, int y, int width, int height)
 {
     lock (padlock) {
         ConsoleForm.Clear(x, y, width, height);
     }
 }
示例#2
0
 /// <summary>
 /// Clears the buffer of this IConsole.
 /// </summary>
 public void ClearBuffer()
 {
     lock (padlock) {
         ConsoleForm.ClearBuffer();
     }
 }
示例#3
0
 /// <summary>
 /// Reads a character from input
 /// </summary>
 /// <returns>The character read from input</returns>
 public char ReadKey()
 {
     lock (padlock) {
         return(ConsoleForm.ReadKey());
     }
 }
示例#4
0
 void runConsole()
 {
     ConsoleForm.Show();
     Application.Run();
 }
示例#5
0
 /// <summary>
 /// Refreshes this IConsole, provided that it is double buffered
 /// Does nothing otherwise
 /// </summary>
 public void Refresh()
 {
     lock (padlock) {
         ConsoleForm.RefreshConsole();
     }
 }
示例#6
0
 /// <summary>
 /// Places the cursor at the specified position
 /// </summary>
 /// <param name="x">The x corrdinate of the cursor position</param>
 /// <param name="y">The y coordinate of the cursor position</param>
 public void GoTo(int x, int y)
 {
     lock (padlock) {
         ConsoleForm.GoTo(x, y);
     }
 }
示例#7
0
 /// <summary>
 /// Writes the specified string at current cursor position
 /// </summary>
 /// <param name="c">The string to write</param>
 public void Write(string s)
 {
     lock (padlock) {
         ConsoleForm.Write(s);
     }
 }
示例#8
0
 /// <summary>
 /// Writes the specified character at current cursor position
 /// </summary>
 /// <param name="c">The character to write</param>
 public void Write(char c)
 {
     lock (padlock) {
         ConsoleForm.Write(c);
     }
 }
示例#9
0
 /// <summary>
 /// Writes the specified character at given coordinates
 /// </summary>
 /// <param name="c">The character to write</param>
 /// <param name="x">The x corrdinate of the write position</param>
 /// <param name="y">The y coordinate of the write position</param>
 public void Write(char c, int x, int y)
 {
     lock (padlock) {
         ConsoleForm.Write(c, x, y);
     }
 }