Ejemplo n.º 1
0
        public void GetRoot()
        {
            var info = Path.GetPathRoot(directory.ReturnStringPath());

            Clean();
            directory  = new PathView(info);
            Items      = GetItems(info);
            wasPainted = false;
        }
Ejemplo n.º 2
0
        public ListView(int x, int y, int height, MyBuffer buffer)
        {
            this.x      = x;
            this.y      = y;
            this.height = height;
            directory   = new PathView();

            this.buffer = buffer;

            ColumnsWidth = new List <int> {
                Console.WindowWidth / 2 - 30, 13, 13
            };
            Items = GetItems(directory.Getdirectoryectory());

            Selected += View_Selected;
            Up       += UpDirectory;
        }