diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fc30f9b..2280041 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,7 +2,8 @@ name: CI
on:
push:
- branches: [ main ]
+ branches: [main]
+ pull_request:
permissions:
contents: read
@@ -11,13 +12,13 @@ jobs:
build:
runs-on: windows-latest
steps:
- - uses: actions/checkout@v6
- - uses: actions/setup-dotnet@v5
- with:
- dotnet-version: '10.x'
- cache: true
- - run: dotnet publish -r win-x64 -c Release
- - uses: actions/upload-artifact@v7
- with:
- name: blis-ng-exe
- path: bin/Release/net10.0/win-x64/publish/BLIS-NG.exe
+ - uses: actions/checkout@v6
+ - uses: actions/setup-dotnet@v5
+ with:
+ dotnet-version: "10.x"
+ cache: true
+ - run: dotnet publish -r win-x64 -c Release
+ - uses: actions/upload-artifact@v7
+ with:
+ name: blis-ng-exe
+ path: bin/Release/net10.0/win-x64/publish/BLIS-NG.exe
diff --git a/App.axaml b/App.axaml
index 9061240..f4c68b5 100644
--- a/App.axaml
+++ b/App.axaml
@@ -1,10 +1,10 @@
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:BLIS_NG"
+ RequestedThemeVariant="Light"
+ x:Class="BLIS_NG.App">
-
+
diff --git a/BLIS-NG.csproj b/BLIS-NG.csproj
index 8512d04..161ce20 100644
--- a/BLIS-NG.csproj
+++ b/BLIS-NG.csproj
@@ -5,6 +5,8 @@
net10.0
BLIS_NG
+ PrepareResources;$(CompileDependsOn)
+
app.manifest
enable
enable
@@ -27,6 +29,17 @@
+
+
+ MSBuild:Compile
+ true
+ $(IntermediateOutputPath)\Resources.Designer.cs
+ CSharp
+ BLIS_NG.Lang
+ Resources
+
+
+
-
+
+
-
-
+
+
-
-
-
-
-
-
+
+ Command="{Binding StartServerCommand}"
+ IsEnabled="{Binding StartBlisEnabled}"
+ Content="{x:Static lang:Resources.Button_StartBlis}" />
+ Command="{Binding StopServerCommand}"
+ IsEnabled="{Binding StopBlisEnabled}"
+ Content="{x:Static lang:Resources.Button_StopBlis}" />
diff --git a/lang/resources.cs b/lang/resources.cs
deleted file mode 100644
index 9320a3e..0000000
--- a/lang/resources.cs
+++ /dev/null
@@ -1,30 +0,0 @@
-using System.Globalization;
-using System.Reflection;
-using System.Resources;
-
-namespace BLIS_NG.Lang;
-
-public static class Resources
-{
- private static readonly ResourceManager ResourceManager = new(
- "BLIS_NG.Lang.Resources",
- Assembly.GetExecutingAssembly());
-
- public static CultureInfo? Culture { get; set; }
-
- private static string Get(string key, string fallback) =>
- ResourceManager.GetString(key, Culture) ?? fallback;
-
- public static string App_Title => Get(nameof(App_Title), "Basic Lab Information System (BLIS)");
- public static string App_Version_Format => Get(nameof(App_Version_Format), "BLIS for Windows {0}");
- public static string App_Tagline_Line1 => Get(nameof(App_Tagline_Line1), "A Joint Initiative of");
- public static string App_Tagline_Line2 => Get(nameof(App_Tagline_Line2), "C4G at Georgia Tech, the CDC, and participating countries.");
- public static string App_LicenseNotice => Get(nameof(App_LicenseNotice), "C4G BLIS has been licensed under the GNU General Public License version 3. For more information, visit blis.cc.gatech.edu.");
- public static string Button_StartBlis => Get(nameof(Button_StartBlis), "Start BLIS");
- public static string Button_StopBlis => Get(nameof(Button_StopBlis), "Stop BLIS");
- public static string Status_Healthy => Get(nameof(Status_Healthy), "Status: Healthy");
- public static string Status_Starting => Get(nameof(Status_Starting), "Status: Starting");
- public static string Status_ApacheHealthcheckFailed => Get(nameof(Status_ApacheHealthcheckFailed), "Status: Apache2 health check failed.");
- public static string Status_Stopping => Get(nameof(Status_Stopping), "Status: Stopping");
- public static string Status_Stopped => Get(nameof(Status_Stopped), "Status: Stopped");
-}