当前位置: 首页>>代码示例>>C#>>正文


C# TimeSpan.ToStringmmss方法代码示例

本文整理汇总了C#中System.TimeSpan.ToStringmmss方法的典型用法代码示例。如果您正苦于以下问题:C# TimeSpan.ToStringmmss方法的具体用法?C# TimeSpan.ToStringmmss怎么用?C# TimeSpan.ToStringmmss使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.TimeSpan的用法示例。


在下文中一共展示了TimeSpan.ToStringmmss方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetTriageUrgent

		public void SetTriageUrgent(int calls,TimeSpan timeBehind) {
			this.labelTriageRedCalls.Text=calls.ToString();
			if(timeBehind==TimeSpan.Zero) { //format the string special for this case
				this.labelTriageRedTimeSpan.Text="00:00";
			}
			else {
				this.labelTriageRedTimeSpan.Text=timeBehind.ToStringmmss();
			}
			if(calls>1) { //we are behind
				labelTriageRedCalls.SetAlertColors();
			}
			else { //we are ok
				labelTriageRedCalls.SetNormalColors();
			}
			if(timeBehind>TimeSpan.FromMinutes(1)) { //we are behind
				labelTriageRedTimeSpan.SetAlertColors();
			}
			else { //we are ok
				labelTriageRedTimeSpan.SetNormalColors();
			}
		}
开发者ID:mnisl,项目名称:OD,代码行数:21,代码来源:FormMapHQ.cs

示例2: SetVoicemailRed

		public void SetVoicemailRed(int calls,TimeSpan timeBehind) {
			this.labelVoicemailCalls.Text=calls.ToString();
			if(timeBehind==TimeSpan.Zero) { //format the string special for this case
				this.labelVoicemailTimeSpan.Text="00:00";
			}
			else {
				this.labelVoicemailTimeSpan.Text=timeBehind.ToStringmmss();
			}
			if(calls>5) { //we are behind
				labelVoicemailCalls.SetAlertColors();
			}
			else { //we are ok
				labelVoicemailCalls.SetNormalColors();
			}
			if(timeBehind>TimeSpan.FromMinutes(5)) { //we are behind
				labelVoicemailTimeSpan.SetAlertColors();
			}
			else { //we are ok
				labelVoicemailTimeSpan.SetNormalColors();
			}
		}
开发者ID:mnisl,项目名称:OD,代码行数:21,代码来源:FormMapHQ.cs

示例3: SetVoicemailRed

		public void SetVoicemailRed(int calls,TimeSpan timeBehind) {
			this.labelVoicemailCalls.Text=calls.ToString();
			if(timeBehind==TimeSpan.Zero) { //format the string special for this case
				this.labelVoicemailTimeSpan.Text="00:00";
			}
			else {
				this.labelVoicemailTimeSpan.Text=timeBehind.ToStringmmss();
			}
			if(calls>5) { //we are behind
				labelVoicemailCalls.InnerColor=Color.Red;
				labelVoicemailCalls.ForeColor=Color.White;
			}
			else { //we are ok
				labelVoicemailCalls.InnerColor=Color.White;
				labelVoicemailCalls.ForeColor=Color.Black;
			}
			if(timeBehind>TimeSpan.FromMinutes(5)) { //we are behind
				labelVoicemailTimeSpan.InnerColor=Color.Red;
				labelVoicemailTimeSpan.ForeColor=Color.White;
			}
			else { //we are ok
				labelVoicemailTimeSpan.InnerColor=Color.White;
				labelVoicemailTimeSpan.ForeColor=Color.Black;
			}
		}
开发者ID:romeroyonatan,项目名称:opendental,代码行数:25,代码来源:FormMapHQ.cs


注:本文中的System.TimeSpan.ToStringmmss方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。