public TestConnectionViewModel(IPluginRepository pluginRepository) { _pluginRepository = pluginRepository; StatusIndicator = new StatusIndicatorViewModel(); Notifications = new NotificationCenterViewModel { ShowEmptyMessage = false, ShowTimeStamp = false }; TestConnectionCommand = AsyncCommand.Create(TestConnection); }
public FileSetupPageViewModel( DirectoryListViewModel dirList, NotificationCenterViewModel notificationCenter, OpenFileDialogCommand openFile, SaveFileDialogCommand saveFile, ISaveService saveService ) : base("File Setup", PackIconKind.File) { this.DirList = dirList; this.NotificationCenter = notificationCenter; OpenFile = openFile; SaveFile = saveFile; this.saveService = saveService; this.SaveFileAction = (path) => saveService.Save(path); }