Example #1
0
 public string getMessage(MsgList msg)
 {
     if (xml.GetNode("Messages") == null)
         return msg.ToString() + " ";
     if (xml.GetNode("Messages." + msg.ToString()) != null)
         return xml["Messages." + msg.ToString()];
     else
         return msg.ToString();
 }
Example #2
0
 public string getMessage(MsgList msg)
 {
     if (xml.GetNode("Messages") == null)
     {
         return(msg.ToString() + " ");
     }
     if (xml.GetNode("Messages." + msg.ToString()) != null)
     {
         return(xml["Messages." + msg.ToString()]);
     }
     else
     {
         return(msg.ToString());
     }
 }