Beispiel #1
0
 /// <summary>
 /// Show progress with range.
 /// </summary>
 /// <returns>The range.</returns>
 /// <param name="bar">Progressbar.</param>
 public static string TextRange(Progressbar bar)
 {
     return(string.Format("{0} / {1}", bar.Value, bar.Max));
 }
Beispiel #2
0
 /// <summary>
 /// Show progress with percent.
 /// </summary>
 /// <returns>string.Empty</returns>
 /// <param name="bar">Progressbar.</param>
 public static string TextPercent(Progressbar bar)
 {
     return(string.Format("{0:P0}", (float)bar.Value / bar.Max));
 }
Beispiel #3
0
 /// <summary>
 /// Don't show progress text.
 /// </summary>
 /// <returns>string.Empty</returns>
 /// <param name="bar">Progressbar.</param>
 public static string TextNone(Progressbar bar)
 {
     return(string.Empty);
 }
		/// <summary>
		/// Show progress with range.
		/// </summary>
		/// <returns>The range.</returns>
		/// <param name="bar">Progressbar.</param>
		public static string TextRange(Progressbar bar)
		{
			return string.Format("{0} / {1}", bar.Value, bar.Max);
		}
		/// <summary>
		/// Show progress with percent.
		/// </summary>
		/// <returns>string.Empty</returns>
		/// <param name="bar">Progressbar.</param>
		public static string TextPercent(Progressbar bar)
		{
			return string.Format("{0:P0}", (float)bar.Value / bar.Max);
		}
		/// <summary>
		/// Don't show progress text.
		/// </summary>
		/// <returns>string.Empty</returns>
		/// <param name="bar">Progressbar.</param>
		public static string TextNone(Progressbar bar)
		{
			return string.Empty;
		}