37 lines
1.6 KiB
C#
37 lines
1.6 KiB
C#
|
|
// Hand-written strongly-typed accessor for Properties/Strings.resx. Kept
|
||
|
|
// out of Visual Studio's "ResXFileCodeGenerator" auto-regeneration loop
|
||
|
|
// so the .csproj stays simple and the file doesn't churn on every save.
|
||
|
|
// If you add a key in Strings.resx, add a matching property here.
|
||
|
|
|
||
|
|
// The compiler treats `*.Designer.cs` as auto-generated and refuses
|
||
|
|
// nullable annotations without an explicit directive — opt in.
|
||
|
|
#nullable enable
|
||
|
|
|
||
|
|
using System.Globalization;
|
||
|
|
using System.Resources;
|
||
|
|
|
||
|
|
namespace TeamsISO.App.Properties;
|
||
|
|
|
||
|
|
internal static class Strings
|
||
|
|
{
|
||
|
|
private static readonly ResourceManager ResourceManager = new(
|
||
|
|
baseName: "TeamsISO.App.Properties.Strings",
|
||
|
|
assembly: typeof(Strings).Assembly);
|
||
|
|
|
||
|
|
public static CultureInfo? Culture { get; set; }
|
||
|
|
|
||
|
|
private static string Get(string key) =>
|
||
|
|
ResourceManager.GetString(key, Culture) ?? string.Empty;
|
||
|
|
|
||
|
|
public static string HideShowTeams_Title => Get(nameof(HideShowTeams_Title));
|
||
|
|
public static string HideShowTeams_NotRunning_Message => Get(nameof(HideShowTeams_NotRunning_Message));
|
||
|
|
|
||
|
|
public static string LaunchTeams_Title => Get(nameof(LaunchTeams_Title));
|
||
|
|
public static string LaunchTeams_Failed_MessageFormat => Get(nameof(LaunchTeams_Failed_MessageFormat));
|
||
|
|
|
||
|
|
public static string StopTeams_Title => Get(nameof(StopTeams_Title));
|
||
|
|
public static string StopTeams_Confirm_Message => Get(nameof(StopTeams_Confirm_Message));
|
||
|
|
public static string StopTeams_NoneResponded => Get(nameof(StopTeams_NoneResponded));
|
||
|
|
public static string StopTeams_AskedFormat => Get(nameof(StopTeams_AskedFormat));
|
||
|
|
}
|