UPGRADE: 画面上にバージョンを表示
@@ -7,11 +7,31 @@ | ||
7 | 7 | { |
8 | 8 | public partial class MainWindow : Window |
9 | 9 | { |
10 | + private string version; | |
11 | + | |
12 | + | |
13 | + | |
14 | + public string Version | |
15 | + { | |
16 | + get | |
17 | + { | |
18 | + if (String.IsNullOrEmpty(this.version)) | |
19 | + { | |
20 | + this.version = GetType().Assembly.GetName().Version.ToString(); | |
21 | + } | |
22 | + return this.version; | |
23 | + } | |
24 | + } | |
25 | + | |
26 | + | |
27 | + | |
10 | 28 | public MainWindow() |
11 | 29 | { |
12 | 30 | InitializeComponent(); |
13 | 31 | } |
14 | 32 | |
33 | + | |
34 | + | |
15 | 35 | private void OpenReport(object sender, ExecutedRoutedEventArgs e) |
16 | 36 | { |
17 | 37 | string file = DialogHelper.SelectFxCopReportFile(); |