From 89d59a115c00efd4cf5a0db68a89415422198526 Mon Sep 17 00:00:00 2001
From: Denis <93516910+Bussun@users.noreply.github.com>
Date: Sat, 26 Feb 2022 12:56:20 +0100
Subject: [PATCH] Added and tested GTK#
Switch to GTK can begin I think
---
BMGEditor/BMGEditor.csproj | 4 ++++
BMGEditor/Program.cs | 13 +++++++++++--
2 files changed, 15 insertions(+), 2 deletions(-)
diff --git a/BMGEditor/BMGEditor.csproj b/BMGEditor/BMGEditor.csproj
index e5b7a5e..1eaea6c 100644
--- a/BMGEditor/BMGEditor.csproj
+++ b/BMGEditor/BMGEditor.csproj
@@ -16,6 +16,10 @@
+
+
+
+
True
diff --git a/BMGEditor/Program.cs b/BMGEditor/Program.cs
index 928f497..3c542ce 100644
--- a/BMGEditor/Program.cs
+++ b/BMGEditor/Program.cs
@@ -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();