Exemple #1
0
            public LogEntry(DebugLogWindow window, ref LogEntryDescription desc)
                : base(0, 0, 120, DefaultHeight)
            {
                DockStyle    = DockStyle.Top;
                IsScrollable = true;

                _window = window;
                Desc    = desc;
                switch (desc.Level)
                {
                case LogType.Warning:
                    Group = LogGroup.Warning;
                    Icon  = _window._iconWarning;
                    break;

                case LogType.Log:
                    Group = LogGroup.Info;
                    Icon  = _window._iconInfo;
                    break;

                default:
                    Group = LogGroup.Error;
                    Icon  = _window._iconError;
                    break;
                }
            }
Exemple #2
0
            public LogEntry(DebugLogWindow window, ref LogEntryDescription desc)
                : base(0, 0, 120, DefaultHeight)
            {
                AnchorPreset = AnchorPresets.HorizontalStretchTop;
                IsScrollable = true;

                _window = window;
                Desc    = desc;
                switch (desc.Level)
                {
                case LogType.Warning:
                    Group = LogGroup.Warning;
                    Icon  = _window.IconWarning;
                    break;

                case LogType.Info:
                    Group = LogGroup.Info;
                    Icon  = _window.IconInfo;
                    break;

                default:
                    Group = LogGroup.Error;
                    Icon  = _window.IconError;
                    break;
                }
            }