Ejemplo n.º 1
0
 public void LoadFromString(TextMessageTable allTextMessages, string textMessageIDs)
 {
     char[] separator = new char[] { ' ', '\n', '\r' };
     string[] strArray = textMessageIDs.Split(separator, StringSplitOptions.RemoveEmptyEntries);
     TextMessage message = null;
     for (int i = 0; i < strArray.Length; i++)
     {
         if (allTextMessages.TextMessages.TryGetValue(int.Parse(strArray[i]), out message))
         {
             this.AddTextMessage(message);
         }
     }
 }
Ejemplo n.º 2
0
        public void LoadFromString(TextMessageTable allTextMessages, string textMessageIDs)
        {
            char[]      separator = new char[] { ' ', '\n', '\r' };
            string[]    strArray  = textMessageIDs.Split(separator, StringSplitOptions.RemoveEmptyEntries);
            TextMessage message   = null;

            for (int i = 0; i < strArray.Length; i++)
            {
                if (allTextMessages.TextMessages.TryGetValue(int.Parse(strArray[i]), out message))
                {
                    this.AddTextMessage(message);
                }
            }
        }