SystemTrayMenu/UserInterface/UpdateWindow.xaml.cs
Peter Kirmeier 26b9a755c3 [Feature] Show hint to find settings and enable by default 'Show function key Settings' #490
(cherry picked from commit 00b4c5ddcc)

Additional changes:
ResourceLoading improved for Window icons
Fix not working OK button of UpdateWindow
2023-08-11 22:29:08 +02:00

41 lines
1.1 KiB
C#

// <copyright file="UpdateWindow.xaml.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
//
// Copyright (c) 2022-2023 Peter Kirmeier
namespace SystemTrayMenu.UserInterface
{
using System.IO;
using System.Reflection;
using System.Windows;
using System.Windows.Media.Imaging;
using SystemTrayMenu.Helpers.Updater;
using SystemTrayMenu.Resources;
/// <summary>
/// Logic of Update window.
/// </summary>
public partial class UpdateWindow : Window
{
public UpdateWindow()
{
InitializeComponent();
Icon = StaticResources.ApplicationImgSrc;
label.Content = ((string)label.Content) + " " + GitHubUpdate.LatestVersionName;
}
private void ButtonGoToDownloadPage_Click(object sender, RoutedEventArgs e)
{
GitHubUpdate.WebOpenLatestRelease();
Close();
}
private void ButtonOk_Click(object sender, RoutedEventArgs e)
{
Close();
}
}
}