Exemple #1
0
 public static string GetNNFromID(int nID)
 {
     if (!PLSafeCustType.bRead)
     {
         PLSafeCustType.ReadTable();
     }
     return(PLSafeCustType.m_MapIDtoNN.ContainsKey(nID) ? PLSafeCustType.m_MapIDtoNN[nID].ToString() : "");
 }
Exemple #2
0
 public static int GetIDFromNN(string Key)
 {
     if (!PLSafeCustType.bRead)
     {
         PLSafeCustType.ReadTable();
     }
     Key = Key.ToUpper();
     return(PLSafeCustType.m_MapNNtoID.ContainsKey(Key) ? Convert.ToInt32(PLSafeCustType.m_MapNNtoID[Key]) : 0);
 }
Exemple #3
0
        public string MakeNN(List <string> ListNNs, bool bSetNickName)
        {
            if (!PLSafeCustType.bRead)
            {
                PLSafeCustType.ReadTable();
            }
            string str = this.MakeListNN(this.Description, ListNNs, (short)6);

            if (bSetNickName)
            {
                this.NickName = str;
            }
            return(str);
        }
Exemple #4
0
        public override string MakeNN(bool bSetNickName)
        {
            if (!PLSafeCustType.bRead)
            {
                PLSafeCustType.ReadTable();
            }
            string str = this.MakeListNN(this.Description, StaticData.m_NNs, (short)6);

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