Add project files.

This commit is contained in:
2021-05-09 22:10:25 +02:00
parent f20ba23e7b
commit f8c472a4cd
70 changed files with 6207 additions and 0 deletions

32
Helpers/ComboboxItem.cs Normal file
View File

@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Helpers
{
public class ComboboxItem
{
private readonly string _display;
private readonly int _hidden;
public ComboboxItem(string display,int hidden)
{
_display = display;
_hidden = hidden;
}
public int HiddenValue
{
get
{
return _hidden;
}
}
public override string ToString()
{
return _display;
}
}
}

7
Helpers/Helpers.csproj Normal file
View File

@ -0,0 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,13 @@
using System;
using System.Globalization;
namespace Helpers
{
public static class StringExtensions
{
public static bool IsNumeric(this string s)
{
return float.TryParse(s, NumberStyles.Float | NumberStyles.Integer, CultureInfo.CurrentUICulture, out _);
}
}
}