mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-06 12:42:02 +12:00
(cherry picked from commit 00b4c5ddcc
)
Additional changes:
ResourceLoading improved for Window icons
Fix not working OK button of UpdateWindow
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
// <copyright file="HowToOpenSettingsWindow.xaml.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
//
|
|
// Copyright (c) 2023-2023 Peter Kirmeier
|
|
|
|
namespace SystemTrayMenu.UserInterface
|
|
{
|
|
using System.Windows;
|
|
using SystemTrayMenu.Resources;
|
|
using SystemTrayMenu.Utilities;
|
|
|
|
/// <summary>
|
|
/// Logic of HowToOpenSettings window.
|
|
/// </summary>
|
|
public partial class HowToOpenSettingsWindow : Window
|
|
{
|
|
public HowToOpenSettingsWindow()
|
|
{
|
|
InitializeComponent();
|
|
|
|
Icon = StaticResources.ApplicationImgSrc;
|
|
|
|
// TODO: Find a way to escape ' within inline single quotes markup string in XAML
|
|
checkBoxDontShowThisHintAgain.Content = Translator.GetText("Don't show this hint again.");
|
|
}
|
|
|
|
internal bool DoNotShowAgain => checkBoxDontShowThisHintAgain.IsChecked ?? false;
|
|
|
|
private void ButtonOk_Click(object sender, RoutedEventArgs e)
|
|
{
|
|
Close();
|
|
}
|
|
}
|
|
}
|