mirror of
https://github.com/sp-tarkov/launcher.git
synced 2025-02-13 09:50:43 -05:00
32 lines
872 B
C#
32 lines
872 B
C#
![]() |
/* IUpdateProgress
|
|||
|
* License: NCSA Open Source License
|
|||
|
*
|
|||
|
* Copyright: Merijn Hendriks
|
|||
|
* AUTHORS:
|
|||
|
* waffle.lord
|
|||
|
*/
|
|||
|
|
|||
|
using Aki.Launcher.Models.Launcher;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace Aki.Launcher.Interfaces
|
|||
|
{
|
|||
|
public interface IUpdateProgress
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// The task that will report progress to the <see cref="Custom_Controls.Dialogs.ProgressDialog"/>
|
|||
|
/// </summary>
|
|||
|
public Action ProgressableTask { get; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Cancel the ProgressableTask with a reason.
|
|||
|
/// </summary>
|
|||
|
public event EventHandler<object> TaskCancelled;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// The <see cref="Custom_Controls.Dialogs.ProgressDialog"/> will subscribe to this event to update its main progress bar (top bar)
|
|||
|
/// </summary>
|
|||
|
public event EventHandler<ProgressInfo> ProgressChanged;
|
|||
|
}
|
|||
|
}
|