Exemple #1
0
 public bool AddDic(UInt64 sGUID, string nickName)
 {
     if (!InvatiDic.ContainsKey(sGUID))
     {
         InvatiDic.Add(sGUID, nickName);
         return(true);
     }
     return(false);
 }
Exemple #2
0
 public void RemoveDic(UInt64 sGUID)
 {
     if (InvatiDic.ContainsKey(sGUID))
     {
         InvatiDic[sGUID] = null;
         InvatiDic.Remove(sGUID);
     }
     if (InvatiDic.Count <= 0)
     {
         InviteCtrl.Instance.Exit();
     }
     else
     {
         sGUID = InvatiDic.ElementAt(InvatiDic.Count - 1).Key;
         string nickName = InvatiDic.ElementAt(InvatiDic.Count - 1).Value;
         ChangeInvite(sGUID, nickName);
     }
 }