예제 #1
0
        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();
        }
예제 #2
0
 public void Unregister() => ConsoleSpaceManager.UnregisterSpaceUsage(Config.SpaceId);