/// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public AddPluginViewModel(IZipService zipService, IFileService fileService, ILiveWriterService liveWriterService)
 {
     _zipService = zipService;
     _fileService = fileService;
     _liveWriterService = liveWriterService;
     CanAdd = AppHelper.LiveWriterInstalled;
 }
 /// <summary>
 /// Initializes a new instance of the MainViewModel class.
 /// </summary>
 public AddPluginViewModel(IZipService zipService, IFileService fileService, ILiveWriterService liveWriterService, IMessageService messageService)
 {
     _zipService = zipService;
     _fileService = fileService;
     _liveWriterService = liveWriterService;
     _messageService = messageService;
     CanAdd = AppHelper.LiveWriterInstalled && AppHelper.IsRunningAsAdmin();
 }
        public RemovePluginViewModel(ILiveWriterService liveWriterService, IMessageService messageService)
        {
            _liveWriterService = liveWriterService;
            _messageService = messageService;

            Messenger.Default.Register<NotificationMessage>(this, m =>
            {
                if (m.Notification.Equals(AppHelper.RemovePluginMsg))
                {
                    var plugin = m.Sender as PluginViewModel;
                    Plugins.Remove(plugin);
                }
            });
        }
 public PluginViewModel(Plugin plugin, ILiveWriterService liveWriterService)
 {
     Plugin = plugin;
     _liveWriterService = liveWriterService;
 }
 public RemovePluginViewModel(ILiveWriterService liveWriterService)
 {
     _liveWriterService = liveWriterService;
 }
 public PluginViewModel(Plugin plugin, ILiveWriterService liveWriterService, IMessageService messageService)
 {
     Plugin = plugin;
     _liveWriterService = liveWriterService;
     _messageService = messageService;
 }