protected override Uri GetPageAddress(SelectDlc dlc) { if (dlc.Information.Id == FakeKunosDlc.Id) { return(UriExtension.Create("/Pages/Miscellaneous/AcObjectSelectList.xaml?Type=car&Filter={0}&Title={1}", $"enabled+&k+&!dlc:", dlc.Information.DisplayName)); } if (dlc.Information.Id == FakeModDlc.Id) { return(UriExtension.Create("/Pages/Miscellaneous/AcObjectSelectList.xaml?Type=car&Filter={0}&Title={1}", $"enabled+&k-", dlc.Information.DisplayName)); } return(UriExtension.Create("/Pages/Miscellaneous/AcObjectSelectList.xaml?Type=car&Filter={0}&Title={1}", $"enabled+&dlc:{Filter.Encode(dlc.Information.ShortName)}", dlc.Information.DisplayName)); }
protected override SelectDlc LoadFromCache(string serialized) { return(SelectDlc.Deserialize(serialized)); }