public MeasurementUnitCreationDialogViewModel()
        {
            _canModifyQuantity = false;

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

            ConfirmCommand = new DelegateCommand <Window>(
                parentDialog =>
            {
                MeasurementUnitInstance = new MeasurementUnit()
                {
                    MeasurableQuantityID = _selectedMeasurableQuantity.ID,
                    Name   = _name,
                    Symbol = _symbol
                };

                MeasurementUnitInstance.Create();

                parentDialog.DialogResult = true;
            },
                parentDialog => !HasErrors);
        }