Added and tested GTK#

Switch to GTK can begin I think
This commit is contained in:
Denis
2022-02-26 12:56:20 +01:00
parent 3ba65779fc
commit 89d59a115c
2 changed files with 15 additions and 2 deletions

View File

@@ -16,6 +16,10 @@
<Content Include="Luma_icon.ico" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="GtkSharp" Version="3.24.24.34" />
</ItemGroup>
<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>

View File

@@ -3,6 +3,8 @@ using System.Windows.Forms;
using System.Net.Http;
using System.IO;
using Gtk;
namespace BMGEditor
{
public static class Variables
@@ -23,9 +25,16 @@ namespace BMGEditor
[STAThread]
static void Main()
{
ApplicationConfiguration.Initialize();
//ApplicationConfiguration.Initialize();
Bcsv.PopulateHashtable();
Application.Run(new BMGEditForm());
//Application.Run(new BMGEditForm());
Gtk.Application.Init();
Window windo = new Window("GTKSharp test");
windo.Resize(200, 200);
windo.ShowAll();
Gtk.Application.Run();
}
static readonly HttpClient wrClient = new HttpClient();