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
|
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>
|
/// <summary>
|
||||||
/// Defines a message that requires user interaction. The user must perform some action
|
/// Defines a message that requires user interaction. The user must perform some action
|
||||||
/// or make a choice.
|
/// 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
|
/// The user didn't make a choice, so this action should be aborted
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void Cancel();
|
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);
|
_source.SetResult(Choice.Abort);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Resume()
|
public void Confirm()
|
||||||
{
|
{
|
||||||
_source.SetResult(Choice.Continue);
|
_source.SetResult(Choice.Continue);
|
||||||
}
|
}
|
||||||
|
@ -75,7 +75,7 @@ namespace Wabbajack
|
|||||||
{
|
{
|
||||||
var result = MessageBox.Show(msg.ExtendedDescription, msg.ShortDescription, MessageBoxButton.OKCancel);
|
var result = MessageBox.Show(msg.ExtendedDescription, msg.ShortDescription, MessageBoxButton.OKCancel);
|
||||||
if (result == MessageBoxResult.OK)
|
if (result == MessageBoxResult.OK)
|
||||||
msg.Resume();
|
msg.Confirm();
|
||||||
else
|
else
|
||||||
msg.Cancel();
|
msg.Cancel();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user