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); }
public ImageProcessing() { OpenFileDialogCommand = new OpenFileDialogCommand(this); SaveFileDialogCommand = new SaveFileDialogCommand(this); TransformToGrayScaleCommand = new TransformToGrayScaleCommand(this); }