SystemTrayMenu/UserInterface/UpdateWindow.xaml.cs
Peter Kirmeier de483c874c Refactored resource file management..
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)
2023-08-12 02:33:11 +02:00

36 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();
}
}
}