Пример #1
0
        /// <summary>
        /// 错误消息
        /// </summary>
        /// <param name="message"></param>
        public void Error(string message)
        {
            var repoMessage = new ReportMessage(ReportMessageType.Error, message);

            AddReportMessage(repoMessage);
        }
Пример #2
0
        /// <summary>
        /// 普通消息
        /// </summary>
        /// <param name="message"></param>
        public void Info(string message)
        {
            var repoMessage = new ReportMessage(ReportMessageType.Info, message);

            AddReportMessage(repoMessage);
        }
Пример #3
0
        /// <summary>
        /// 严重错误消息
        /// </summary>
        /// <param name="message"></param>
        public void Danger(string message)
        {
            var repoMessage = new ReportMessage(ReportMessageType.Danger, message);

            AddReportMessage(repoMessage);
        }
Пример #4
0
 /// <summary>
 /// 添加报告数据
 /// </summary>
 /// <param name="message"></param>
 private void AddReportMessage(ReportMessage message)
 {
     ReportData.Add(message);
     OnReportDataAdded(EventArgs.Empty);
 }
Пример #5
0
        /// <summary>
        /// 报警消息
        /// </summary>
        /// <param name="message"></param>
        public void Warning(string message)
        {
            var repoMessage = new ReportMessage(ReportMessageType.Warning, message);

            AddReportMessage(repoMessage);
        }