Пример #1
0
        public void Initialize(DotConsoleRegion parent)
        {
            bufferSize = new Coordinates(parent.Options.BufferSize.X, 3);

            RegionCreationOptions init = new RegionCreationOptions(parent.Renderer, parent, bufferSize);

            init.Orgin    = new Coordinates(0, 1);
            init.Position = DotConsoleRegion.ContentPosition.Top;

            progressBarRegion = new DotConsoleRegion(init);
        }
Пример #2
0
        public RegionCreationOptions(IConsoleRenderer renderer, DotConsoleRegion parent, Coordinates bufferSize)
        {
            this.Renderer   = renderer;
            this.Parent     = parent;
            this.BufferSize = bufferSize;

            this.Orgin             = default(Coordinates);
            this.WillScrollContent = false;
            this.ForegroundColor   = new Color(255, 255, 255);
            this.BackgroundColor   = new Color(0, 0, 100);
            this.Position          = DotConsoleRegion.ContentPosition.Top;
            this.IsVisible         = true;
        }
Пример #3
0
 public ProgressBar(DotConsoleRegion parent)
 {
     Initialize(parent);
 }