Exemplo n.º 1
0
 protected DialogResult ShowMultiMessage(ArrayList arrMsgInfo)
 {
     try
     {
         string msgTemp = string.Empty;
         for (int i = 0; i < arrMsgInfo.Count; i++)
         {
             MessageInf msfInfoTemp = (MessageInf)arrMsgInfo[i];
             msgTemp += CreatMsg(msfInfoTemp);
             if (i + 1 != arrMsgInfo.Count)
             {
                 msgTemp += "\n";
             }
         }
         if (msgTemp.Equals(string.Empty))
         {
             return(DialogResult.None);
         }
         else
         {
             return(MessageBox.Show(msgTemp, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error));
         }
     }
     catch (Exception ex)
     {
         Console.Write(ex.Message);
         return(DialogResult.None);
     }
 }
Exemplo n.º 2
0
        private string CreatMsg(MessageInf msgInfo)
        {
            string Msgrs = string.Empty;

            Msgrs = COMMAND.MessageUtils.Message.GetMessageById(msgInfo.MsgId);
            Msgrs = string.Format(Msgrs, msgInfo.ArrParam);
            return(Msgrs);
        }