42 lines
1.1 KiB
C#
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();
|
|
}
|
|
}
|
|
}
|