Beispiel #1
0
        internal void Construct(ApplicationSchemaDefinition application, DataMap dataMap, bool isNew, CompositeDataMap composite, DetailController detailController, Func <Task <bool> > commandPreCondition, Action <string> titleSetter)
        {
            _applicationMetadata = application;
            _dataMap             = dataMap;
            _composite           = composite;
            _detailController    = detailController;
            _commandPreCondition = commandPreCondition;
            _titleSetter         = titleSetter;

            // Create our buddy binding which will help
            // us to move data between the data map and
            // the UI controls.
            _binding = UiBinder.Bind(_dataMap, _applicationMetadata, isNew);

            // Load the data, but ignore validation for
            // now. We don't want objects that are already
            // invalid triggering a sea of red in the UI.
            _binding.IsValidationSuppressed = true;
        }