27 lines
697 B
C#
27 lines
697 B
C#
using System;
|
|
using System.Windows;
|
|
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();
|
|
}
|
|
}
|
|
}
|