public ReportProblemCommand(IViewModelDependencies appCtx, IProblemReporter reporter, IScreenshotTool screenShot, IZetboxContext dataCtx, ViewModel parent) : base(appCtx, dataCtx, parent, CommonCommandsResources.ReportProblemCommand_Name, CommonCommandsResources.ReportProblemCommand_Tooltip) { if (reporter == null) { throw new ArgumentNullException("reporter"); } if (screenShot == null) { throw new ArgumentNullException("screenShot"); } this._reporter = reporter; this._screenShot = screenShot; }
private void Setup() { if (_ctx == null) { _ctx = _scope.Resolve<IZetboxContext>(); } if (_vmf == null) { _vmf = _scope.Resolve<IViewModelFactory>(); } if (_screenshot == null) { _screenshot = _scope.Resolve<IScreenshotTool>(); } }
public ReportProblemCommand(IViewModelDependencies appCtx, IProblemReporter reporter, IScreenshotTool screenShot, IZetboxContext dataCtx, ViewModel parent) : base(appCtx, dataCtx, parent, CommonCommandsResources.ReportProblemCommand_Name, CommonCommandsResources.ReportProblemCommand_Tooltip) { if (reporter == null) throw new ArgumentNullException("reporter"); if (screenShot == null) throw new ArgumentNullException("screenShot"); this._reporter = reporter; this._screenShot = screenShot; }