Formatted code and rebuilt PluginLoader
This commit is contained in:
@@ -1,45 +1,43 @@
|
||||
|
||||
using System.Threading.Tasks;
|
||||
using Spectre.Console;
|
||||
|
||||
namespace PluginManager.UX.Other;
|
||||
|
||||
|
||||
internal class Console : IOutputModel
|
||||
internal class Console: IOutputModel
|
||||
{
|
||||
|
||||
public Task ShowMessageBox(string title, string message, MessageBoxType type)
|
||||
{
|
||||
AnsiConsole.Markup(title);
|
||||
AnsiConsole.Markup(message);
|
||||
|
||||
|
||||
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public Task<string> ShowInputBox(string title, string message)
|
||||
{
|
||||
AnsiConsole.MarkupLine(title);
|
||||
|
||||
string input = AnsiConsole.Ask<string>(message);
|
||||
|
||||
|
||||
var input = AnsiConsole.Ask<string>(message);
|
||||
|
||||
return Task.FromResult(input);
|
||||
}
|
||||
|
||||
|
||||
public Task ShowMessageBox(string message)
|
||||
{
|
||||
AnsiConsole.MarkupLine(message);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public Task<int> ShowMessageBox(string title, string message,MessageBoxButtons buttons, bool isWarning)
|
||||
|
||||
public Task<int> ShowMessageBox(string title, string message, MessageBoxButtons buttons, bool isWarning)
|
||||
{
|
||||
AnsiConsole.MarkupLine(title);
|
||||
AnsiConsole.MarkupLine(message);
|
||||
|
||||
|
||||
return Task.FromResult(0);
|
||||
}
|
||||
|
||||
|
||||
public Task ShowNotification(string title, string message, int timeout_seconds = 5)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
|
||||
Reference in New Issue
Block a user