예제 #1
0
        public TestConnectionViewModel(IPluginRepository pluginRepository)
        {
            _pluginRepository = pluginRepository;

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