public override void ReSize()
        {
            Width  = Console.WindowWidth;
            Height = Console.WindowHeight;

            screen_buffer = new winapi.types.CHAR_INFO[Width * Height];
        }
Ejemplo n.º 2
0
        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];
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 5
0
        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),
            };
        }