- Timestamp:
- 11/22/18 12:37:04 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2845_EnhancedProgress/HeuristicLab.MainForm/3.3/Interfaces/IProgress.cs
r16311 r16317 25 25 namespace HeuristicLab.MainForm { 26 26 public enum ProgressState { Started, Finished, StopRequested, CancelRequested } 27 public enum Progress BarMode { Continuous, Marquee }27 public enum ProgressMode { Determinate, Indeterminate } 28 28 29 29 public interface IProgress : IContent { 30 30 ProgressState ProgressState { get; } 31 31 32 string Message { get; set; } 32 ProgressBarMode ProgressBarMode { get; set; } 33 34 ProgressMode ProgressMode { get; set; } 33 35 /// <summary> 34 36 /// Gets or sets the currently associated progress value in the range [0;1] (values outside the range are truncated). 35 /// Changing the ProgressValue when ProgressBarMode is Marqueeraises an Exception.37 /// Changing the ProgressValue when <c>ProgressMode</c> is <c>Indeterminate</c> raises an Exception. 36 38 /// </summary> 37 /// <exception cref="InvalidOperationException">Setting the ProgressValue-property while in the Marquee state is invalid.</exception>39 /// <exception cref="InvalidOperationException">Setting the ProgressValue-property while in the Indeterminate state is invalid.</exception> 38 40 double ProgressValue { get; set; } 39 bool CanBeStopped { get; }40 bool CanBeCanceled { get; }41 41 42 /// <summary> 43 /// Start (or Restart) a progress in ProgressBarMode Continues to display specific progress values (from 0 to 1). 44 /// A new progress value is reported by setting the ProgressValue-property. 45 /// </summary> 46 void Start(string message, double progressValue = 0); 42 bool CanBeStopped { get; set; } 43 bool CanBeCanceled { get; set; } 47 44 48 /// <summary> 49 /// Start (or Restart) a progress in ProgressBarMode Marquee to define an "unknown" progress state. 50 /// Consider using marquee when the progress is not measurable but the user should be notified that something is still happening. 51 /// Setting the ProgressValue-property in the Marquee state throws an exception. 52 /// </summary> 53 void StartMarquee(string message); 54 45 void Start(string message, ProgressMode mode = ProgressMode.Determinate); 55 46 void Finish(); 56 47 void Stop();
Note: See TracChangeset
for help on using the changeset viewer.