Put license into About view; adjust install license file.
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user