예제 #1
0
 public void AddMessage(string code, string message, string button, string description, string disposition)
 {
     TermMessageSetClass termmessageset = new TermMessageSetClass {
         Code = code,
         Message = message,
         Button = button,
         Description = description,
         Disposition = disposition
     };
     this.termMessageSetList.Add(termmessageset);
 }
예제 #2
0
 public void CreateMessage(string messageCode, string applyStr, string internalCode)
 {
     ULogClass.LogWrite("Message Code=[" + messageCode + "] Apply Character String=[" + applyStr + "]\r\n" + internalCode);
     this.trmMsg = TermMessage.CreateInstance();
     this.trmMsgSet = this.trmMsg.TermMessageSetList.GetTermMessageSet(messageCode);
     if (this.trmMsgSet == null)
     {
         this.txbMessageCode.Text = "E---";
         this.rTxbMessage.Text = string.Format(Resources.ResourceManager.GetString("CORE102"), messageCode);
         this.rTxbDescription.Text = Resources.ResourceManager.GetString("CORE103");
         this.rTxbDisposition.Text = Resources.ResourceManager.GetString("CORE104");
         this.buttonSet(ButtonPatern.OK_ONLY, MessageKind.Error);
     }
     else
     {
         this.txbMessageCode.Text = messageCode;
         string str = this.trmMsgSet.Message.Replace(@"\n", "\n");
         if (applyStr == null)
         {
             this.rTxbMessage.Text = str;
         }
         else
         {
             this.rTxbMessage.Text = str.Replace("#s", applyStr);
         }
         this.rTxbDescription.Text = this.trmMsgSet.Description.Replace(@"\n", "\n");
         this.rTxbDisposition.Text = this.trmMsgSet.Disposition.Replace(@"\n", "\n");
         this.buttonSet(this.getButtonPatern(this.trmMsgSet.Button), this.getMessageKind(messageCode));
     }
     if ((internalCode != null) && !internalCode.Equals(""))
     {
         this.rTxbInternalCode.Text = internalCode;
     }
     else
     {
         this.rTxbInternalCode.Text = Resources.ResourceManager.GetString("INTERNAL_CODE_NULL");
     }
 }