2022-11-13 09:07:15 +13:00
|
|
|
|
// <copyright file="UpdateWindow.xaml.cs" company="PlaceholderCompany">
|
|
|
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
|
|
|
// </copyright>
|
|
|
|
|
//
|
2023-04-17 00:17:33 +12:00
|
|
|
|
// Copyright (c) 2022-2023 Peter Kirmeier
|
2022-11-13 09:07:15 +13:00
|
|
|
|
|
|
|
|
|
namespace SystemTrayMenu.UserInterface
|
|
|
|
|
{
|
|
|
|
|
using System.Windows;
|
2023-04-17 00:17:33 +12:00
|
|
|
|
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();
|
|
|
|
|
}
|
2023-08-12 08:25:25 +12:00
|
|
|
|
|
|
|
|
|
private void ButtonOk_Click(object sender, RoutedEventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Close();
|
|
|
|
|
}
|
2022-11-13 09:07:15 +13:00
|
|
|
|
}
|
|
|
|
|
}
|