示例#1
0
文件: Msgs.cs 项目: handayu/Edi
		public void Add(string Msg, Msg.MsgCategory cat)
		{
			lock (this.syncRoot)
			{
				if (this.msgs == null)
					this.msgs = new List<Msg>();

				this.msgs.Add(new Msg(Msg, cat));
			}
		}
示例#2
0
        public void Add(string msg, Msg.MsgCategory cat)
        {
            lock (_syncRoot)
            {
                if (_msgs == null)
                {
                    _msgs = new List <Msg>();
                }

                _msgs.Add(new Msg(msg, cat));
            }
        }
示例#3
0
 public void AddMessage(string strMessage, Msg.MsgCategory categoryOfMsg = Msg.MsgCategory.Error)
 {
     this.AddMessage(new Msg(strMessage, categoryOfMsg));
 }