public CaptureAreaVM(IImageFileHelper imageFileHelper, IWindow window) { this.imageStorageHelper = imageFileHelper; this.boundWindow = window; this.CapturAreaCommand = new RelayCommand <Rect>((Rect r) => { // Console.Write(r); // var bmp = WindowSnap.GetBitmapInCoordinates((int)r.X, (int)r.Y, (int)r.Width, (int)r.Height); //this.boundWindow.Reset(); //this.imageStorageHelper.Save(bmp as Bitmap); this.OnWindowCloseCallBack(r); //System.Threading.Thread.Sleep(10000); //this.boundWindow.HideWin(); }); }
/// <summary> /// Initializes a new instance of the <see cref="MainVM"/> class. /// </summary> /// <param name="messageBox">The message box.</param> /// <param name="fileHelper">The file helper.</param> /// <param name="windowHelper">The window helper.</param> /// <param name="wordImageManager">The word image manager.</param> /// <param name="tempAction">The temporary action.</param> /// <param name="captureAreaWindow">The capture area window.</param> public MainVM(IMessageBox messageBox, IImageFileHelper fileHelper, Func <IWindowHelper> windowHelper , IImageManager wordImageManager, IWindow tempAction, CaptureAreaVM captureAreaWindow) { this.messageBox = messageBox; //this.methodToGetBaseFolder = methodToGetBaseFolder; this.imageFileHelper = fileHelper; this.windowHelperfunc = windowHelper; this.wordImageManager = wordImageManager; this.captureImageCommand = new GalaSoft.MvvmLight.Command.RelayCommand(() => { this.CaptureImage(); }); this.captureAreaCommand = new RelayCommand(() => { this.CaptureArea(); }); this.uiWindow = tempAction; this.captureAreaWindow = captureAreaWindow; }
public WordImageManager(IMessageBox messageBox, IImageFileHelper fileHelper) { this.fileHelper = fileHelper; this.messageBox = messageBox; }
public AfetzedeFotografManager(IAfetzedeFotografDal afetzedeFotografDal, IImageFileHelper imageFileHelper) { _afetzedeFotografDal = afetzedeFotografDal; _imageFileHelper = imageFileHelper; }