private void SetLeftTimeUI(DateTime from, DateTime to) { string str; int num = Miscs.GetDiffTimeToShow(from, to, out str); if (num <= 0) { num = 1; } this.TimeNumber_comp.text = num.ToString(); this.TimeLable_comp.text = str; }