public static void _OutPutDelegate(string stroutput) { if (NTextManager._onOutputline != null) { NTextManager._onOutputline(stroutput); } }
public virtual string GetText(string strTextKey, string srcText) { try { string text = string.Empty; string result; if (this.m_TextTable.TryGetValue(strTextKey, out text)) { if (this.m_owner.CRLFReplaceTime == NTextManager.CRLFReplaceTimeType.GETTING) { text = text.Replace("{\\r\\n}", "\r\n").Replace("{\\t}", "\\t"); } result = text; return(result); } string text2 = strTextKey.Replace("\r", "\\r"); text2 = text2.Replace("\r\n", "◀┘"); text2 = text2.Replace("\n", "\\n"); text2 = text2.Replace("\t", "\\t"); string text3 = this.m_strName; text3 = text3.Replace("\r", "\\r"); text3 = text3.Replace("\r\n", "◀┘"); text3 = text3.Replace("\n", "\\n"); text3 = text3.Replace("\t", "\\t"); if (NTextManager._onOutputline != null) { string msg = string.Format("(notext! TextKey: \"{0}\" - (Group: {1} (texts:{2}))", text2, text3, this.Count); NTextManager._onOutputline(msg); } this._OutputDebugLine(string.Format("(notext! TextKey: \"{0}\" - (Group: {1} ({2}))", text2, text3, srcText)); result = string.Empty; return(result); } catch (Exception output) { this._OutputDebugLine(output); } return("(Exception)"); }