Put license into About view; adjust install license file.

This commit is contained in:
Daniel Kraus
2015-07-28 18:16:39 +02:00
parent 4bae35b665
commit f2e75b1abe
6 changed files with 163 additions and 345 deletions

View File

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