Files
mpv.net/mpv.net/WPF/AboutWindow.xaml.cs
2019-08-05 03:06:40 +02:00

20 lines
672 B
C#

using System.IO;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
namespace mpvnet
{
public partial class AboutWindow : Window
{
public AboutWindow()
{
InitializeComponent();
Version.Text = $"mpv.net Version {System.Windows.Forms.Application.ProductVersion}";
mpvVersion.Text = $"{mp.get_property_string("mpv-version")} ({File.GetLastWriteTime(PathHelp.StartupPath + "mpv-1.dll").ToShortDateString()})";
}
protected override void OnPreviewKeyDown(KeyEventArgs e) => Close();
protected override void OnMouseDown(MouseButtonEventArgs e) => Close();
}
}