Exemple #1
0
        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>();
     }
 }
Exemple #3
0
        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;
        }