internal Panel(PanelConfig config) { var id = ConsoleSpaceManager.RegisterSpaceUsage(config.NLines); config.SpaceId = id; config.OwnerPanel = this; _fixedLines = new Dictionary <string, string>(); _rollingLines = new LinkedList <string>(); _lineBuilder = AppDomain.CurrentDomain.UnityContainer().Resolve <AbstractPanelLineBuilder>(); _consoleWriter = new ConsoleWriter(); Config = config; PrintTitle(); }
public void Unregister() => ConsoleSpaceManager.UnregisterSpaceUsage(Config.SpaceId);