Beispiel #1
0
 /// <summary>
 /// </summary>
 public ExecMsg(ExecMsgSeverity msgSeverity, int msgID, params object[] msgParams)
 {
     MessageID = msgID;
     Severity  = msgSeverity;
     Message   = (msgParams != null)
                         ? string.Format(SysMsgLoader.GetMessageContent(MessageID), msgParams).Trim()
                         : SysMsgLoader.GetMessageContent(MessageID).Trim();
 }
Beispiel #2
0
 /// <summary>
 /// Raise a single message, using specified criteria for the
 /// new message.
 /// </summary>
 /// <param name="severity">Severity of message.</param>
 /// <param name="msgID">MessageCode</param>
 /// <param name="msgParams">Optional parameters used with the message content (string)
 /// that is defined for this message code.</param>
 public static void RaiseMsg(ExecMsgSeverity severity, SysMsgCode msgID, params object[] msgParams)
 {
     RaiseMsg(new ExecMsg(severity, msgID, msgParams));
 }
Beispiel #3
0
 public ExecMsg(ExecMsgSeverity msgSeverity, ExecMsg msgOld)
 {
     MessageID = msgOld.MessageID;
     Severity  = msgSeverity;
     Message   = msgOld.Message;
 }
Beispiel #4
0
 /// <summary>
 /// </summary>
 public ExecMsg(ExecMsgSeverity msgSeverity, SysMsgCode msgID, params object[] msgParams) :
     this(msgSeverity, (int)msgID, msgParams)
 {
 }