Пример #1
0
        public PageLog()
        {
            InitializeComponent();

            rlbListener = new RollingListBoxListener(listBox);
            rlbListener.AutoScrollToBottom = true;

            TraceSource trace = XyratexOSC.Logging.Log.Trace();

            trace.Listeners.Add(rlbListener);
        }
Пример #2
0
        public PageLog()
        {
            InitializeComponent();

            if (!this.DesignMode)
            {
                rlbListener = new RollingListBoxListener(listBox, txtLatest);
                rlbListener.AutoScrollToBottom = true;
                rlbListener.MaxEntries         = 50;
                TraceSource trace = XyratexOSC.Logging.Log.Trace();
                trace.Listeners.Add(rlbListener);
            }
        }