Exemple #1
0
        public Object GetChatUniqueService(ChatKeys objChatKeys)
        {
            Object chatkey = null;

            DbParam[] param = new DbParam[]
            {
                new DbParam(objChatKeys.FirstUserKey, typeof(System.String), "_userKey"),
                new DbParam(objChatKeys.SecondUserKey, typeof(System.String), "_sndUserKey"),
            };

            chatkey = db.ExecuteSingle("sp_GetChatKey", param, true);
            return(chatkey);
        }
Exemple #2
0
 public static void UnRegisterKeyDownEvent(ChatKeys k, OnKeyDownEvent e)
 {
     chatEvents[k] -= e;
 }
Exemple #3
0
 public static void RegisterKeyDownEvent(ChatKeys k ,OnKeyDownEvent e)
 {
     if (!chatEvents.ContainsKey(k))
     chatEvents[k] = e;
       else
     chatEvents[k] += e;
 }