Esempio n. 1
0
 public static string GetNNFromID(int nID)
 {
     if (!PLUser.bRead)
     {
         PLUser.ReadTable();
     }
     return(PLUser.m_MapIDtoNN.ContainsKey(nID) ? PLUser.m_MapIDtoNN[nID].ToString() : "");
 }
Esempio n. 2
0
 public static int GetIDFromNN(string Key)
 {
     if (!PLUser.bRead)
     {
         PLUser.ReadTable();
     }
     Key = Key.ToUpper();
     return(PLUser.m_MapNNtoID.ContainsKey(Key) ? Convert.ToInt32(PLUser.m_MapNNtoID[Key]) : 0);
 }
Esempio n. 3
0
        public override string MakeNN(bool bSetNickName)
        {
            if (!PLUser.bRead)
            {
                PLUser.ReadTable();
            }
            string str = this.MakeListNN(this.Name, PLUser.m_NNs, (short)25);

            if (bSetNickName)
            {
                this.NickName = str;
            }
            return(str);
        }