Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
IProgressStatus.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 
5 namespace SiliconStudio.Core.Diagnostics
6 {
7  /// <summary>
8  /// Provides progress of an operation.
9  /// </summary>
10  public interface IProgressStatus
11  {
12  // TODO: Current design is poor as it does not support recursive progress
13 
14  /// <summary>
15  /// An event handler to notify the progress of an operation.
16  /// </summary>
17  event EventHandler<ProgressStatusEventArgs> ProgressChanged;
18 
19  /// <summary>
20  /// Handles the <see cref="E:ProgressChanged" /> event.
21  /// </summary>
22  /// <param name="e">The <see cref="ProgressStatusEventArgs"/> instance containing the event data.</param>
23  void OnProgressChanged(ProgressStatusEventArgs e);
24  }
25 }
An event indicating the progress of an operation.
EventHandler< ProgressStatusEventArgs > ProgressChanged
An event handler to notify the progress of an operation.
Provides progress of an operation.