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

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