public static string GetStrTotalFromSec(int _Sec) { string text = PublicMethod.GetYearFromSec((long)_Sec).ToString(); string text2 = PublicMethod.GetMonthFromSec((long)_Sec).ToString(); string text3 = PublicMethod.GetDayFromSec((long)_Sec).ToString(); string text4 = PublicMethod.GetHourFromSec((long)_Sec).ToString(); string text5 = PublicMethod.GetMinuteFromSec((long)_Sec).ToString(); string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1002"); string textFromInterface2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1003"); string textFromInterface3 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1004"); string textFromInterface4 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1005"); string textFromInterface5 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1006"); string text6 = string.Empty; if (text != "0") { text6 = text6 + text + textFromInterface + string.Empty; } if (text2 != "0") { text6 = text6 + text2 + textFromInterface2 + " "; } if (text3 != "0") { text6 = text6 + text3 + textFromInterface3 + " "; } if (text4 != "0") { text6 = text6 + text4 + textFromInterface4 + " "; } if (text5 != "0") { text6 = text6 + text5 + textFromInterface5; } if (_Sec == 0) { text6 = "0" + textFromInterface5; } return(text6); }
public void DrawTime() { string text = PublicMethod.GetMonthFromSec(this.m_TotalPlayTimeCount).ToString(); string text2 = PublicMethod.GetDayFromSec(this.m_TotalPlayTimeCount).ToString(); string text3 = PublicMethod.GetHourFromSec(this.m_TotalPlayTimeCount).ToString(); string text4 = PublicMethod.GetMinuteFromSec(this.m_TotalPlayTimeCount).ToString(); string empty = string.Empty; if ("0" == text) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1626"), "day", text2, "hour", text3, "min", text4 }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2322"), "month", text, "day", text2, "hour", text3, "min", text4 }); } this.m_lbPlayTime.SetText(empty); string text5 = PublicMethod.GetMonthFromSec(this.m_RealPlayTimeCount).ToString(); string text6 = PublicMethod.GetDayFromSec(this.m_RealPlayTimeCount).ToString(); string text7 = PublicMethod.GetHourFromSec(this.m_RealPlayTimeCount).ToString(); string text8 = PublicMethod.GetMinuteFromSec(this.m_RealPlayTimeCount).ToString(); string empty2 = string.Empty; if ("0" == text5) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1626"), "day", text6, "hour", text7, "min", text8 }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2322"), "month", text5, "day", text6, "hour", text7, "min", text8 }); } this.m_lbRealTime.SetText(empty2); }