Add respository link to AboutView and AboutViewModel.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user