Skip to content

Commit fb3c6d0

Browse files
committed
Version 1.4.0.0
1 parent f08696f commit fb3c6d0

5 files changed

Lines changed: 18 additions & 20 deletions

File tree

Source/NETworkManager/Models/Settings/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public class AssemblyInfo
77
public string Title { get; set; }
88
public string Company { get; set; }
99
public string Copyright { get; set; }
10-
public string Version { get; set; }
10+
public Version Version { get; set; }
1111

1212
public AssemblyInfo()
1313
{

Source/NETworkManager/Models/Settings/AssemblyManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static void Load()
2020
Title = title.Title,
2121
Company = company.Company,
2222
Copyright = copyright.Copyright,
23-
Version = string.Format("{0}.{1}.{2}", name.Version.Major, name.Version.Minor, name.Version.Build)
23+
Version = name.Version
2424
};
2525
}
2626
}

Source/NETworkManager/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,4 @@
4949
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
5050
// übernehmen, indem Sie "*" eingeben:
5151
// [assembly: AssemblyVersion("1.0.*")]
52-
[assembly: AssemblyVersion("2017.11.21.0")]
53-
[assembly: AssemblyFileVersion("2017.11.21.0")]
52+
[assembly: AssemblyVersion("1.4.0.0")]

Source/NETworkManager/ViewModels/Settings/AboutViewModel.cs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using NETworkManager.Models.Settings;
22
using System.Windows.Input;
33
using System.Diagnostics;
4+
using System.Windows;
45

56
namespace NETworkManager.ViewModels.Settings
67
{
@@ -21,38 +22,39 @@ public string Title
2122
}
2223
}
2324

24-
private string _copyrightAndAuthor;
25-
public string CopyrightAndAuthor
25+
private string _version;
26+
public string Version
2627
{
27-
get { return _copyrightAndAuthor; }
28+
get { return _version; }
2829
set
2930
{
30-
if (value == _copyrightAndAuthor)
31+
if (value == _version)
3132
return;
3233

33-
_copyrightAndAuthor = value;
34+
_version = value;
3435
OnPropertyChanged();
3536
}
3637
}
3738

38-
private string _version;
39-
public string Version
39+
private string _copyrightAndAuthor;
40+
public string CopyrightAndAuthor
4041
{
41-
get { return _version; }
42+
get { return _copyrightAndAuthor; }
4243
set
4344
{
44-
if (value == _version)
45+
if (value == _copyrightAndAuthor)
4546
return;
4647

47-
_version = value;
48+
_copyrightAndAuthor = value;
4849
OnPropertyChanged();
4950
}
50-
}
51+
}
5152
#endregion
5253

5354
#region Constructor
5455
public AboutViewModel()
55-
{
56+
{
57+
Version = string.Format("{0} {1}", Application.Current.Resources["String_Version"] as string, AssemblyManager.Current.Version);
5658
CopyrightAndAuthor = string.Format("{0} {1}.", AssemblyManager.Current.Copyright, AssemblyManager.Current.Company);
5759
}
5860
#endregion

Source/NETworkManager/Views/Settings/AboutView.xaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
<StackPanel Grid.Column="1" Margin="20,0,0,0">
2222
<TextBlock FontSize="32" Grid.Row="0" Text="{DynamicResource String_ProductName}" Style="{StaticResource HeaderTextBlock}" />
2323
<TextBlock Text="{DynamicResource String_Slogan}" Style="{DynamicResource WrapTextBlock}" Margin="0,0,0,5" />
24-
<StackPanel Orientation="Horizontal" Margin="0,0,0,5">
25-
<TextBlock Text="{DynamicResource String_Version}" Style="{StaticResource DefaultTextBlock}" FontWeight="Bold" />
26-
<TextBlock Text="{Binding Source={x:Static Settings:AssemblyManager.Current}, Path=Version}" Style="{StaticResource DefaultTextBlock}" FontWeight="Bold" Margin="5,0,0,0"/>
27-
</StackPanel>
24+
<TextBlock Text="{Binding Version}" Style="{StaticResource DefaultTextBlock}" FontWeight="Bold" Margin="0,0,0,5" />
2825
<TextBlock Text="{Binding CopyrightAndAuthor}" Style="{StaticResource DefaultTextBlock}" Margin="0,0,0,5"/>
2926
<TextBlock Text="{x:Static Resources:Resources.License_GNUGPLv3 }" Style="{StaticResource LinkTextBlock}">
3027
<TextBlock.InputBindings>

0 commit comments

Comments
 (0)