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); }
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; }
public ProgressBar(DotConsoleRegion parent) { Initialize(parent); }