protected void msg(string patten, params object[] vals) { if (noticeEvent != null) { myNoticeEvent notice = new myNoticeEvent(SubEvent); notice.BeginInvoke(msgType(), string.Format(patten, vals), null, null); } }
/// <summary> /// 显示消息 /// </summary> /// <param name="mg">消息内容</param> protected void msg(string mg) { if (noticeEvent != null) { myNoticeEvent notice = new myNoticeEvent(SubEvent); notice.BeginInvoke(msgType(), mg, null, null); } }