예제 #1
0
        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));
            });
        }
예제 #2
0
 public DescribedProfile(ProfileDescription description)
 {
     Description = description;
     Profile     = (Profile)description.getProfile().get();
 }