public ProfileViewModel(ProfileDescription profile) { ProfileDescription = profile; Profile = (Profile)profile.getProfile().get(); Installed = profile.isInstalled() && Profile.isEnabled(); IsEnabled = !(Profile.isBundled() || Utils.ConvertFromJavaList <Host>(BookmarkCollection.defaultCollection()).Any(x => x.getProtocol().Equals(Profile))); OpenHelp = ReactiveCommand.Create(() => { BrowserLauncherFactory.get().open(ProviderHelpServiceFactory.get().help(Profile)); }); }
public DescribedProfile(ProfileDescription description) { Description = description; Profile = (Profile)description.getProfile().get(); }