mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-06 12:42:02 +12:00
26b9a755c3
(cherry picked from commit 00b4c5ddcc
)
Additional changes:
ResourceLoading improved for Window icons
Fix not working OK button of UpdateWindow
41 lines
1.1 KiB
C#
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();
|
|
}
|
|
}
|
|
}
|