SystemTrayMenu/UserInterface/UpdateWindow.xaml.cs

36 lines
935 B
C#
Raw Normal View History

2022-11-13 09:07:15 +13:00
// <copyright file="UpdateWindow.xaml.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>
//
// Copyright (c) 2022-2023 Peter Kirmeier
2022-11-13 09:07:15 +13:00
namespace SystemTrayMenu.UserInterface
{
using System.Windows;
using SystemTrayMenu.Helpers.Updater;
2022-11-13 09:07:15 +13:00
/// <summary>
/// Logic of Update window.
/// </summary>
public partial class UpdateWindow : Window
{
public UpdateWindow()
{
InitializeComponent();
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();
}
2022-11-13 09:07:15 +13:00
}
}