Skip to content

Commit

Permalink
Added version label on window
Browse files Browse the repository at this point in the history
  • Loading branch information
Otiel committed Feb 18, 2014
1 parent 80ed6ed commit ef76566
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Sources/BandcampDownloader/Windows/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
<CheckBox Content="Download one album at a time" Height="16" Margin="415,161,0,0" Name="checkBoxOneAlbumAtATime" VerticalAlignment="Top" HorizontalAlignment="Left" IsEnabled="True" ToolTip="If checked, only one album at a time will be downloaded.&#x0a;If unchecked, all albums will be downloaded at the same time (preferred if you have a high bandwidth)." />
<Label Height="28" HorizontalAlignment="Left" Margin="9,229,0,0" Name="labelDownloadSpeed" VerticalAlignment="Top" />
<CheckBox Content="Force download of all albums" Height="16" HorizontalAlignment="Left" IsEnabled="True" Margin="617,161,0,0" Name="checkBoxForceAlbumsDownload" ToolTip="If checked, all albums referred on the page will be downloaded.&#x0a;Check this box if you want to download all albums of an artist." VerticalAlignment="Top" />
<Label Content="v x.x.x.x" HorizontalAlignment="Left" Margin="8,0,0,-3" Name="labelVersion" Foreground="Gray" Height="28" VerticalAlignment="Bottom" />
</Grid>
</Window>
3 changes: 3 additions & 0 deletions Sources/BandcampDownloader/Windows/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using System.Windows.Forms;
using System.Windows.Input;
using System.Windows.Media;
using System.Reflection;

namespace BandcampDownloader {

Expand Down Expand Up @@ -63,6 +64,8 @@ public MainWindow() {
// Hints
textBoxUrls.Text = Constants.UrlsHint;
textBoxUrls.Foreground = new SolidColorBrush(Colors.DarkGray);
// Version
labelVersion.Content = "v " + Assembly.GetEntryAssembly().GetName().Version;
}

#endregion Constructor
Expand Down

0 comments on commit ef76566

Please sign in to comment.