Esempio n. 1
0
        public TestConnectionViewModel(IPluginRepository pluginRepository)
        {
            _pluginRepository = pluginRepository;

            StatusIndicator = new StatusIndicatorViewModel();
            Notifications   = new NotificationCenterViewModel {
                ShowEmptyMessage = false, ShowTimeStamp = false
            };
            TestConnectionCommand = AsyncCommand.Create(TestConnection);
        }
Esempio n. 2
0
 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);
 }