mirror of
https://github.com/Hofknecht/SystemTrayMenu.git
synced 2024-09-06 20:51:15 +12:00
Remove use of resx file Resource files are marked as "Resource" instead Resources are loaded via resource dictionaries (either from code behind or XAML directly through binding) Reduce amount of required image conversions Also fix overlay of 50 percent transparency (is now rendered half transparent correct instead of adding "white fog") Remove obsolete image as rendering is done directly in code Also fix rendering of link indicator at correct image position Also remove setting Icons of all Windows (as default is application icon anyway)
35 lines
935 B
C#
35 lines
935 B
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.Windows;
|
|
using SystemTrayMenu.Helpers.Updater;
|
|
|
|
/// <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();
|
|
}
|
|
}
|
|
}
|