public override string MakeNN(bool bSetNickName) { if (!PLRate.bRead) { PLRate.ReadTable(); } string str = this.MakeListNN(this.Name, PLRate.m_NNs, (short)4); if (bSetNickName) { this.NickName = str; } return(str); }
public static string GetNNFromID(int Key) { string str; if (!Key.Equals(0)) { if (!PLRate.bRead) { PLRate.ReadTable(); } str = PLRate.m_MapIDtoNN == null ? "" : (PLRate.m_MapIDtoNN.ContainsKey(Key) ? PLRate.m_MapIDtoNN[Key].ToString() : ""); } else { str = ""; } return(str); }
public static int GetIDFromNN(string Key) { int num; if (!Key.Equals("")) { if (!PLRate.bRead) { PLRate.ReadTable(); } num = PLRate.m_MapNNtoID == null ? 0 : (PLRate.m_MapNNtoID.ContainsKey(Key) ? Convert.ToInt32(PLRate.m_MapNNtoID[Key]) : 0); } else { num = 0; } return(num); }