コード例 #1
0
        /// <summary>
        ///     Initialize the Controls on a PageView Object using the Properties of a PropertyPage object.
        /// </summary>
        public void InitializeControls()
        {
            _propertyPageUi.UserEditComplete -= propertyPageUI_UserEditComplete;
            foreach (var str in _propertyControlTable.GetPropertyNames())
            {
                var valueForProperty        = _pageViewSite.GetValueForProperty(str);
                var controlFromPropertyName = _propertyControlTable.GetControlFromPropertyName(str);

                _propertyPageUi.SetControlValue(controlFromPropertyName, valueForProperty);
            }
            _propertyPageUi.UserEditComplete += propertyPageUI_UserEditComplete;
        }