public ConsolidateStandardDialogViewModel(IDataService <LabDbEntities> labDbData,
                                                  ISpecificationService specificationService)
        {
            _labDbData            = labDbData;
            _specificationService = specificationService;

            CancelCommand = new DelegateCommand <Window>(
                parentDialog =>
            {
                parentDialog.DialogResult = false;
            });

            ConfirmCommand = new DelegateCommand <Window>(
                parentDialog =>
            {
                _specificationService.ConsolidateStandard(StandardList.Where(giw => giw.IsSelected)
                                                          .Select(giw => giw.Item),
                                                          _standardInstance);
                parentDialog.DialogResult = true;
            },
                parentDialog => _standardInstance != null);
        }