mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Removed IUserIntervention.Resume
This commit is contained in:
parent
760461ab3e
commit
b1ebd3c362
@ -6,24 +6,6 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace Wabbajack.Common.StatusFeed
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines a message that requires user interaction. The user must perform some action
|
||||
/// or make a choice.
|
||||
/// </summary>
|
||||
public interface IUserIntervention<T> : IStatusMessage
|
||||
{
|
||||
/// <summary>
|
||||
/// The user didn't make a choice, so this action should be aborted
|
||||
/// </summary>
|
||||
void Cancel();
|
||||
|
||||
/// <summary>
|
||||
/// The user has provided the required information.
|
||||
/// </summary>
|
||||
/// <param name="result"></param>
|
||||
void Resume(T result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines a message that requires user interaction. The user must perform some action
|
||||
/// or make a choice.
|
||||
@ -34,10 +16,5 @@ namespace Wabbajack.Common.StatusFeed
|
||||
/// The user didn't make a choice, so this action should be aborted
|
||||
/// </summary>
|
||||
void Cancel();
|
||||
|
||||
/// <summary>
|
||||
/// Resume without any further information
|
||||
/// </summary>
|
||||
void Resume();
|
||||
}
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ will be reverted. Are you sure you wish to continue?";
|
||||
_source.SetResult(Choice.Abort);
|
||||
}
|
||||
|
||||
public void Resume()
|
||||
public void Confirm()
|
||||
{
|
||||
_source.SetResult(Choice.Continue);
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ namespace Wabbajack
|
||||
{
|
||||
var result = MessageBox.Show(msg.ExtendedDescription, msg.ShortDescription, MessageBoxButton.OKCancel);
|
||||
if (result == MessageBoxResult.OK)
|
||||
msg.Resume();
|
||||
msg.Confirm();
|
||||
else
|
||||
msg.Cancel();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user