mirror of
https://github.com/wagesj45/butterflow-ui.git
synced 2024-11-14 05:43:33 -06:00
Adding versioning and meta data
This commit is contained in:
parent
300fad34e7
commit
5becb42a63
5 changed files with 24 additions and 4 deletions
|
@ -15,6 +15,11 @@
|
|||
<ContentControl VerticalAlignment="Center" Template="{StaticResource ButterflowUIIcon}" />
|
||||
<TextBlock VerticalAlignment="Center" Text="{x:Static loc:Localization.Title}" FontSize="64" FontFamily="Segoe UI Black" />
|
||||
</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" />
|
||||
<Separator Margin="0,15" />
|
||||
<Grid>
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
@ -24,6 +25,8 @@ namespace butterflow_ui
|
|||
public AboutWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.txtVersion.Text = Assembly.GetExecutingAssembly().GetName().Version.ToString();
|
||||
}
|
||||
|
||||
/// <summary> Event handler. Called by Hyperlink for request navigate events. </summary>
|
||||
|
|
|
@ -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>
|
||||
/// Looks up a localized string similar to Width.
|
||||
/// </summary>
|
||||
|
|
|
@ -357,4 +357,7 @@
|
|||
<data name="SaveLabel" xml:space="preserve">
|
||||
<value>Save</value>
|
||||
</data>
|
||||
<data name="VersionLabel" xml:space="preserve">
|
||||
<value>Version</value>
|
||||
</data>
|
||||
</root>
|
|
@ -8,11 +8,11 @@ using System.Windows;
|
|||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("butterflow-ui")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyDescription("A graphical user interface for butterflow. ")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyCompany("butterflow-ui developers")]
|
||||
[assembly: AssemblyProduct("butterflow-ui")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2018")]
|
||||
[assembly: AssemblyCopyright("MIT License")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
|
@ -51,5 +51,5 @@ using System.Windows;
|
|||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyVersion("1.0.1.*")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
|
|
Loading…
Reference in a new issue