1
0
Fork 0
mirror of https://github.com/wagesj45/butterflow-ui.git synced 2024-12-22 09:12:42 -06:00

Adding versioning and meta data

This commit is contained in:
Jordan Wages 2018-07-14 22:00:48 -05:00
parent 300fad34e7
commit 5becb42a63
5 changed files with 24 additions and 4 deletions

View file

@ -15,6 +15,11 @@
<ContentControl VerticalAlignment="Center" Template="{StaticResource ButterflowUIIcon}" /> <ContentControl VerticalAlignment="Center" Template="{StaticResource ButterflowUIIcon}" />
<TextBlock VerticalAlignment="Center" Text="{x:Static loc:Localization.Title}" FontSize="64" FontFamily="Segoe UI Black" /> <TextBlock VerticalAlignment="Center" Text="{x:Static loc:Localization.Title}" FontSize="64" FontFamily="Segoe UI Black" />
</StackPanel> </StackPanel>
<WrapPanel HorizontalAlignment="Center">
<TextBlock Text="{x:Static loc:Localization.VersionLabel}" />
<TextBlock Text=" - "/>
<TextBlock Name="txtVersion" Text="0.0.0.0" />
</WrapPanel>
<TextBlock Text="{x:Static loc:Localization.AboutWindowDescription}" TextAlignment="Center" /> <TextBlock Text="{x:Static loc:Localization.AboutWindowDescription}" TextAlignment="Center" />
<Separator Margin="0,15" /> <Separator Margin="0,15" />
<Grid> <Grid>

View file

@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Diagnostics; using System.Diagnostics;
using System.Linq; using System.Linq;
using System.Reflection;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using System.Windows; using System.Windows;
@ -24,6 +25,8 @@ namespace butterflow_ui
public AboutWindow() public AboutWindow()
{ {
InitializeComponent(); InitializeComponent();
this.txtVersion.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
} }
/// <summary> Event handler. Called by Hyperlink for request navigate events. </summary> /// <summary> Event handler. Called by Hyperlink for request navigate events. </summary>

View file

@ -753,6 +753,15 @@ namespace butterflow_ui.Localization {
} }
} }
/// <summary>
/// Looks up a localized string similar to Version.
/// </summary>
public static string VersionLabel {
get {
return ResourceManager.GetString("VersionLabel", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Width. /// Looks up a localized string similar to Width.
/// </summary> /// </summary>

View file

@ -357,4 +357,7 @@
<data name="SaveLabel" xml:space="preserve"> <data name="SaveLabel" xml:space="preserve">
<value>Save</value> <value>Save</value>
</data> </data>
<data name="VersionLabel" xml:space="preserve">
<value>Version</value>
</data>
</root> </root>

View file

@ -8,11 +8,11 @@ using System.Windows;
// set of attributes. Change these attribute values to modify the information // set of attributes. Change these attribute values to modify the information
// associated with an assembly. // associated with an assembly.
[assembly: AssemblyTitle("butterflow-ui")] [assembly: AssemblyTitle("butterflow-ui")]
[assembly: AssemblyDescription("")] [assembly: AssemblyDescription("A graphical user interface for butterflow. ")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("butterflow-ui developers")]
[assembly: AssemblyProduct("butterflow-ui")] [assembly: AssemblyProduct("butterflow-ui")]
[assembly: AssemblyCopyright("Copyright © 2018")] [assembly: AssemblyCopyright("MIT License")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
@ -51,5 +51,5 @@ using System.Windows;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.1.*")]
[assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]