Updated initial setup

This commit is contained in:
2023-04-01 16:14:04 +03:00
parent f2418d0395
commit d20cb62139
12 changed files with 338 additions and 135 deletions

16
test/Program.cs Normal file
View File

@@ -0,0 +1,16 @@
using PluginManager.WindowManagement;
InputBox inputBox = new InputBox();
inputBox.Title = "Test";
inputBox.Message = "This is a test";
inputBox.AddOption("Enter a number", (input) => int.TryParse(input, out int result));
inputBox.AddOption("Enter a string", (input) => !string.IsNullOrEmpty(input));
inputBox.AddOption("Enter a number", (input) => int.TryParse(input, out int result));
var result = inputBox.Show();
foreach (var item in result)
{
Console.WriteLine(item);
}

14
test/test.csproj Normal file
View File

@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\PluginManager\PluginManager.csproj" />
</ItemGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>