Files
QoSManager/Views/UnsupportedVersionWindow.xaml.cs
T
ded_ikar e7ea83daa0 fix QoS
2026-05-04 01:50:35 +05:00

42 lines
1.1 KiB
C#

using System;
using System.Windows;
using System.Windows.Input;
using QoSManager.Services;
namespace QoSManager.Views
{
public partial class UnsupportedVersionWindow : Window
{
private readonly WindowsVersionService.WindowsInfo _windowsInfo;
public UnsupportedVersionWindow(WindowsVersionService.WindowsInfo windowsInfo)
{
InitializeComponent();
_windowsInfo = windowsInfo;
DataContext = this;
VersionText.Text = _windowsInfo.VersionString;
}
private void ExitButton_Click(object sender, RoutedEventArgs e)
{
// User decided to exit
DialogResult = false;
Close();
}
private void TitleBar_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
if (e.ChangedButton == MouseButton.Left)
{
DragMove();
}
}
private void CloseButton_Click(object sender, RoutedEventArgs e)
{
DialogResult = false;
Close();
}
}
}