Add respository link to AboutView and AboutViewModel.

This commit is contained in:
Daniel Kraus
2015-09-06 12:06:39 +02:00
parent c733c238de
commit 95dfa95562
5 changed files with 47 additions and 2 deletions

View File

@ -79,6 +79,14 @@ namespace zaaReloaded2.ViewModels
}
}
public string Repository
{
get
{
return Properties.Settings.Default.Repository.ToString();
}
}
public string LicenseUrl
{
get
@ -104,6 +112,19 @@ namespace zaaReloaded2.ViewModels
}
}
public DelegatingCommand GotoRepositoryCommand
{
get
{
if (_gotoRepositoryCommand == null)
{
_gotoRepositoryCommand = new DelegatingCommand(
param => { Process.Start(new ProcessStartInfo(Repository)); });
}
return _gotoRepositoryCommand;
}
}
public DelegatingCommand GotoLicenseCommand
{
get
@ -131,6 +152,7 @@ namespace zaaReloaded2.ViewModels
#region Fields
DelegatingCommand _gotoHomepageCommand;
DelegatingCommand _gotoRepositoryCommand;
DelegatingCommand _gotoLicenseCommand;
#endregion