示例#1
0
文件: LogViewer.cs 项目: minskowl/MY
        /// <summary>
        /// Shows the specified logger type.
        /// </summary>
        /// <param name="loggerType">Type of the logger.</param>
        public void Show(LoggerType loggerType)
        {
            if (activeLogger != null)
            {
                activeLogger.EntryAdded -= activeLogger_EntryAdded;
            }
            activeLogger = AppCore.GetLogger(loggerType);

            activeLogger.EntryAdded += activeLogger_EntryAdded;
            SetData();
        }