0
0
mirror of https://github.com/sp-tarkov/launcher.git synced 2025-02-13 07:50:45 -05:00

32 lines
872 B
C#
Raw Normal View History

2023-03-03 19:25:33 +00:00
/* 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;
}
}