Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
 protected override SelectDlc LoadFromCache(string serialized)
 {
     return(SelectDlc.Deserialize(serialized));
 }