public DesignTimeLicenseDialogViewModel() { var msLicense = new ModSetLicenses("Test Mod") {IsModSetLicensesExpanded = true}; ModSetLicenses = new List<ModSetLicenses> {msLicense}; var mod = new Mod(Guid.NewGuid()) {Name = "Test Mod", ModVersion = "1.0.0"}; var ml = new ModLicense(null, String.Format("{0} {1}", mod.Name, mod.ModVersion)) { IsModLicenseExpanded = true }; msLicense.ModLicenses.Add(ml); }
public LicenseDialogViewModel(IEnumerable<LicenseInfo> licenses, string modSetName) { LicensesFailed = ""; ModSetLicenses = new List<ModSetLicenses>(); var thisModSetLicenses = new ModSetLicenses(modSetName); ModSetLicenses.Add(thisModSetLicenses); foreach (var l in licenses) HandleLicense(l); DisplayName = "License agreements need to be accepted before installation can proceed"; }