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

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