Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
0
 public ImageProcessing()
 {
     OpenFileDialogCommand       = new OpenFileDialogCommand(this);
     SaveFileDialogCommand       = new SaveFileDialogCommand(this);
     TransformToGrayScaleCommand = new TransformToGrayScaleCommand(this);
 }