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); }
public static void UnRegisterKeyDownEvent(ChatKeys k, OnKeyDownEvent e) { chatEvents[k] -= e; }
public static void RegisterKeyDownEvent(ChatKeys k ,OnKeyDownEvent e) { if (!chatEvents.ContainsKey(k)) chatEvents[k] = e; else chatEvents[k] += e; }