Removed IUserIntervention.Resume

This commit is contained in:
Justin Swanson 2019-12-04 23:14:40 -06:00
parent 760461ab3e
commit b1ebd3c362
3 changed files with 2 additions and 25 deletions

View File

@ -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();
}
}

View File

@ -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);
}

View File

@ -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();
}