-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml.cs
34 lines (30 loc) · 893 Bytes
/
MainWindow.xaml.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using Labs.WPF.TorrentDownload.ViewModels;
using System;
using System.Reflection;
using System.Windows;
using Unity.Attributes;
namespace Labs.WPF.TorrentDownload
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
this.Loaded += MainWindow_Loaded;
}
[Dependency]
public MainWindowViewModel ViewModel
{
set
{
this.DataContext = value;
}
}
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
Assembly assembly = Assembly.GetExecutingAssembly();
Version version = assembly.GetName().Version;
this.Title = string.Format("TV Shows Organizer - V.{0}.{1}.{2}.{3}", version.Major, version.Minor, version.Build, version.Revision);
}
}
}