Пример #1
0
        public static Message CloneFrom(object e)
        {
            var Type = (string)DynamicContainer.GetValue(e, "Type");
            
            var n = new Message(Type);

            DynamicClone(e, n);

            return n;
        }
Пример #2
0
		public static void SendMessage(Connection c, SharedClass1.Messages m, params object[] e)
		{
			var i = new Message(((int)m).ToString());

			foreach (var z in e)
			{
				i.Add(z);
			}

			c.Send(i);
		}
Пример #3
0
 public MessageEvent(string type, Message message)
 {
 }