diff --git a/DicomGrep/MainWindow.xaml b/DicomGrep/MainWindow.xaml index 33c30a8..650e000 100644 --- a/DicomGrep/MainWindow.xaml +++ b/DicomGrep/MainWindow.xaml @@ -8,7 +8,7 @@ xmlns:enums="clr-namespace:DicomGrep.Enums" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" mc:Ignorable="d" - Title="Dicom Grep" Height="640" Width="960" MinWidth="300" MinHeight="200"> + Title="{Binding Version, StringFormat='Dicom Grep v{0}'}" Height="640" Width="960" MinWidth="300" MinHeight="200"> diff --git a/DicomGrep/ViewModels/MainViewModel.cs b/DicomGrep/ViewModels/MainViewModel.cs index 8040fbc..9b32124 100644 --- a/DicomGrep/ViewModels/MainViewModel.cs +++ b/DicomGrep/ViewModels/MainViewModel.cs @@ -11,6 +11,7 @@ using System.Collections.ObjectModel; using System.ComponentModel; using System.Linq; +using System.Reflection; using System.Text; using System.Threading; using System.Threading.Tasks; @@ -21,6 +22,8 @@ namespace DicomGrep.ViewModels { public class MainViewModel : ViewModelBase { + public string Version => Assembly.GetExecutingAssembly().GetName().Version.ToString(); + // todo: using DI private readonly SearchService searchService = new SearchService(); private readonly DictionaryService dictionaryService = new DictionaryService(); diff --git a/DicomGrep/Views/DicomDictionaryLookupView.xaml b/DicomGrep/Views/DicomDictionaryLookupView.xaml index 14cb2c3..3ac3327 100644 --- a/DicomGrep/Views/DicomDictionaryLookupView.xaml +++ b/DicomGrep/Views/DicomDictionaryLookupView.xaml @@ -35,7 +35,7 @@