public override void ReSize() { Width = Console.WindowWidth; Height = Console.WindowHeight; screen_buffer = new winapi.types.CHAR_INFO[Width * Height]; }
public void ReSize(int width, int height) { Width = Console.WindowWidth; Height = Console.WindowHeight; max_lines_per_screen = Height - 4; screen_buffer = new winapi.types.CHAR_INFO[Width * Height]; }
public EditorWindow(int x, int y, int width, int height) { name = "editor"; this.x = x; this.y = y; Width = width; Height = height; max_lines_per_screen = Height - 4; screen_buffer = new winapi.types.CHAR_INFO[Width * Height]; }
public FileExplorerWindow(string dir, int width, int height, int x, int y) { name = "file_explorer"; this.x = x; this.y = y; Width = width; Height = height; screen_buffer = new winapi.types.CHAR_INFO[Width * Height]; directory = dir; Load(); }
public SplashWindow(int x, int y, int width, int height) { this.x = x; this.y = y; Width = width; Height = height; name = "splash"; screen_buffer = new winapi.types.CHAR_INFO[Width * Height]; actions = new Tuple <string, Action>[] { new Tuple <string, Action>("Open File", OpenFile), new Tuple <string, Action>("New File", OpenFile), }; }