diff --git a/bindings/csharp/hamlibgui/MainWindow.cs b/bindings/csharp/hamlibgui/MainWindow.cs deleted file mode 100644 index 827011930..000000000 --- a/bindings/csharp/hamlibgui/MainWindow.cs +++ /dev/null @@ -1,48 +0,0 @@ -using System; -using Gtk; -using UI = Gtk.Builder.ObjectAttribute; - -namespace hamlibgui -{ -class MainWindow : Window -{ - [UI] private Label _label1 = null; - [UI] private Button _button1 = null; - - private bool connectFlag; - - public MainWindow() : this(new Builder("MainWindow.glade")) { } - - private MainWindow(Builder builder) : base( - builder.GetRawOwnedObject("MainWindow")) - { - builder.Autoconnect(this); - - DeleteEvent += Window_DeleteEvent; - _button1.Clicked += Button1_Clicked; - } - - private void Window_DeleteEvent(object sender, DeleteEventArgs a) - { - Application.Quit(); - } - - private void Button1_Clicked(object sender, EventArgs a) - { - connectFlag = !connectFlag; - - if (connectFlag) - { - String mytext = "Rig Connected (not really)"; - _label1.Text = mytext; - _button1.Label = "Disconnect Rig"; - } - else - { - String mytext = "Rig not Connected "; - _label1.Text = mytext; - _button1.Label = "Connect to Rig"; - } - } -} -} diff --git a/bindings/csharp/hamlibgui/MainWindow.glade b/bindings/csharp/hamlibgui/MainWindow.glade deleted file mode 100755 index abc5b731a..000000000 --- a/bindings/csharp/hamlibgui/MainWindow.glade +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - False - Hamlib Control - 480 - 240 - - - True - False - 4 - 4 - 4 - 4 - vertical - - - True - False - Hamlib controller to go here - - - True - True - 0 - - - - - Connect to Rig - True - False - True - Click to connect/disconnect rig - - - False - True - 1 - - - - - - diff --git a/bindings/csharp/hamlibgui/Program.cs b/bindings/csharp/hamlibgui/Program.cs deleted file mode 100755 index 1bad8e7a9..000000000 --- a/bindings/csharp/hamlibgui/Program.cs +++ /dev/null @@ -1,23 +0,0 @@ -using System; -using Gtk; - -namespace hamlibgui -{ - class Program - { - [STAThread] - public static void Main(string[] args) - { - Application.Init(); - - var app = new Application("org.hamlibgui.hamlibgui", GLib.ApplicationFlags.None); - app.Register(GLib.Cancellable.Current); - - var win = new MainWindow(); - app.AddWindow(win); - - win.Show(); - Application.Run(); - } - } -} diff --git a/bindings/csharp/hamlibgui/README.txt b/bindings/csharp/hamlibgui/README.txt deleted file mode 100644 index 9d01e25fd..000000000 --- a/bindings/csharp/hamlibgui/README.txt +++ /dev/null @@ -1,18 +0,0 @@ -This is a test of creating a portable Hamlib GUI controller using dotnet and GTK -Should be able to compile on Windows, Linux, and MacOS -No guarantee this will go anywhere depending on ability to talk to Hamlib via C# - -On Windows -dotnet new install GtkSharp.Template.CSharp -dotnet build - - - - -On Ubuntu I don't see the GtkSharp package -- but you can build the code generated on the Windows side. -apt install dotnet-sdk-6.0 -dotnet build - - -Note: On Windows you can create a skeleton GTK app -dotnet new gtkapp diff --git a/bindings/csharp/hamlibgui/hamlibgui.csproj b/bindings/csharp/hamlibgui/hamlibgui.csproj deleted file mode 100755 index 459dedc85..000000000 --- a/bindings/csharp/hamlibgui/hamlibgui.csproj +++ /dev/null @@ -1,19 +0,0 @@ - - - - WinExe - net6.0 - - - - - - %(Filename)%(Extension) - - - - - - - -