예제 #1
0
        protected override void OnHandleCreated(EventArgs e)
        {
            base.OnHandleCreated(e);

            this.logEntryList.BindToDualityLogs();
            this.logEntryList.ScrollToEnd();

            InMemoryLogOutput logHistory = DualityEditorApp.GlobalLogData;

            for (int i = 0; i < logHistory.Entries.Count; i++)
            {
                LogMessageType type = logHistory.Entries[i].Type;
                if (type == LogMessageType.Warning)
                {
                    this.unseenWarnings++;
                }
                else if (type == LogMessageType.Error)
                {
                    this.unseenErrors++;
                }
            }
            this.UpdateTabText();
        }