예제 #1
0
        /// <summary>
        /// Layer
        /// </summary>
        /// <param name="control"></param>
        /// <param name="properties"></param>
        static void BuildLayerProperty(MgControlBase control, Dictionary <string, DesignerPropertyInfo> properties)
        {
            bool isDefaultvalue = false;
            int  value          = GetRuntimeValueAsInt(control, PropInterface.PROP_TYPE_LAYER, ref isDefaultvalue);

            properties.Add(Constants.WinPropLayer, new DesignerPropertyInfo()
            {
                VisibleInPropertyGrid = false,
                Value            = value,
                IsDefaultValue   = isDefaultvalue,
                IsNativeProperty = false,
                RuntimeValue     = control.getLayer()
            });
        }