コード例 #1
0
    static void loadTypes()
    {
        string sDir       = Path.GetDirectoryName(typeof(InitKnownTypes).Assembly.Location);
        string toolboxCfg = Path.Combine(sDir, "LimnorToolbox.xml");

        XmlUtil.AddKnownTypes(toolboxCfg);
        Type[] lst = typeof(WebMessageBox).Assembly.GetExportedTypes();
        for (int i = 0; i < lst.Length; i++)
        {
            if (lst[i].GetInterface("IWebClientControl") != null)
            {
                XmlUtil.AddKnownType(lst[i].Name, lst[i]);
            }
            else
            {
                object[] vs = lst[i].GetCustomAttributes(typeof(WebClientClassAttribute), true);
                if (vs != null && vs.Length > 0)
                {
                    XmlUtil.AddKnownType(lst[i].Name, lst[i]);
                }
                else
                {
                    if (lst[i].GetInterface("IWebServerComponentCreator") != null)
                    {
                        XmlUtil.AddKnownType(lst[i].Name, lst[i]);
                    }
                }
            }
        }
    }
コード例 #2
0
    private static void addDatabaseTypes()
    {
        DataEditor.DelegateGetDatabaseLookupDataDialog = DataEditorLookupDB.GetDatabaseLookupDataDialog;
        DataEditor.DelegateGetCheckedListDialog        = DlgDataEditorCheckedListbox.GetCheckedListDataDialog;
        XmlUtil.AddKnownType("OleDbType", typeof(OleDbType));
        XmlUtil.AddKnownType("DataTable", typeof(DataTable));
        XmlUtil.AddKnownType("DataColumn", typeof(DataColumn));
        XmlUtil.AddKnownType("Binding", typeof(Binding));

        XmlUtil.AddKnownType("SQLNoneQuery", typeof(SQLNoneQuery));
        XmlUtil.AddKnownType("EasyGrid", typeof(EasyGrid));
        XmlUtil.AddKnownType("EasyDetailsGrid", typeof(EasyGridDetail));
        XmlUtil.AddKnownType("EasyDataSet", typeof(EasyDataSet));
        XmlUtil.AddKnownType("EasyQuery", typeof(EasyQuery));
        XmlUtil.AddKnownType("Connection", typeof(Connection));
        XmlUtil.AddKnownType("EPField", typeof(EPField));
        XmlUtil.AddKnownType("DataEditorFile", typeof(DataEditorFile));
        XmlUtil.AddKnownType("DataEditorDatetime", typeof(DataEditorDatetime));
        XmlUtil.AddKnownType("FieldList", typeof(FieldList));
        XmlUtil.AddKnownType("ParameterList", typeof(ParameterList));
        XmlUtil.AddKnownType("EasyUpdator", typeof(EasyUpdator));
        XmlUtil.AddKnownType("DatabaseExecuter", typeof(DatabaseExecuter));
        XmlUtil.AddKnownType("EasyTransactor", typeof(EasyTransactor));
        XmlUtil.AddKnownType("EasyTransfer", typeof(EasyTransfer));
        XmlUtil.AddKnownType("WebDataRow", typeof(WebDataRow));
        XmlUtil.AddKnownType("DataGridViewEx", typeof(DataGridViewEx));
        //
        XmlUtil.AddKnownType("ColumnAttributes", typeof(ColumnAttributes));
        XmlUtil.AddKnownType("ColorCondition", typeof(ColorCondition));
        XmlUtil.AddKnownType("DrawTextAttrs", typeof(DrawTextAttrs));
        XmlUtil.AddKnownType("WebLoginManager", typeof(WebLoginManager));
        XmlUtil.AddKnownType("FieldCollection", typeof(FieldCollection));
        //
        XmlUtil.AddKnownType("TransMethod", typeof(TransMethod));
        XmlUtil.AddKnownType("clsFTPParams", typeof(clsFTPParams));
        XmlUtil.AddKnownType("DTDataSource", typeof(DTDataSource));
        XmlUtil.AddKnownType("DTSSourceText", typeof(DTSSourceText));
        XmlUtil.AddKnownType("DTDataDestination", typeof(DTDataDestination));
        //
        XmlUtil.AddKnownType("DataQuery", typeof(DataQuery));
        XmlUtil.AddKnownType("DTDest", typeof(DTDest));
        XmlUtil.AddKnownType("DTDestTextFile", typeof(DTDestTextFile));
        XmlUtil.AddKnownType("DTSQuery", typeof(DTSQuery));
        XmlUtil.AddKnownType("PropertyValue", typeof(PropertyValue));
        XmlUtil.AddKnownType("DTDataDestination", typeof(DTDataDestination));
        //
        XmlUtil.AddKnownType("DbParameterListExt", typeof(DbParameterListExt));
    }
コード例 #3
0
    private static void addWebBuilderTypes()
    {
        XmlUtil.AddKnownType("LimnorWebApp", typeof(LimnorWebApp));
        XmlUtil.AddKnownType("LimnorWebAppPhp", typeof(LimnorWebAppPhp));
        XmlUtil.AddKnownType("SendMail", typeof(SendMail));
        XmlUtil.AddKnownType("ServerFile", typeof(ServerFile));
        XmlUtil.AddKnownType("PhpComponent", typeof(PhpComponent));
        //
        XmlUtil.AddKnownType("PhpString", typeof(PhpString));
        XmlUtil.AddKnownType("PhpArray", typeof(PhpArray));
        //
        XmlUtil.AddKnownType("WebDataEditor", typeof(WebDataEditor));
        XmlUtil.AddKnownType("WebDataEditorDatetime", typeof(WebDataEditorDatetime));
        XmlUtil.AddKnownType("WebDataEditorLookup", typeof(WebDataEditorLookup));
        XmlUtil.AddKnownType("WebDataEditorNone", typeof(WebDataEditorNone));
        //
        Dictionary <string, Type> types = WebClientData.GetJavascriptTypes();

        foreach (Type t in types.Values)
        {
            XmlUtil.AddKnownType(t.Name, t);
        }
    }
コード例 #4
0
 static MathNodeMethodPointer()
 {
     XmlUtil.AddKnownType("MathNodeMethodPointer", typeof(MathNodeMethodPointer));
 }
コード例 #5
0
 public static void Init()
 {
     if (!_knowTypesAdded)
     {
         XmlUtil.AddKnownType("WebPage", typeof(WebPage));
         VPLUtil.DelegateLogIdeProfiling = DesignUtil.LogIdeProfile;
         _knowTypesAdded = true;
         //
         VirtualWebDir.OnValidationError = new EventHandler(MathNode.OnSetLastValidationError);
         //
         XmlUtil.CreateDesignTimeType = new fnCreateDesignTimeType(CreateClassType);
         //
         VPLUtil.GetClassTypeFromDynamicType = new fnGetClassTypeFromDynamicType(ClassPointerX.GetClassTypeFromDynamicType);
         VPLUtil.CollectLanguageIcons        = ProjectResources.CollectLanguageIcons;
         VPLUtil.GetLanguageImageByName      = TreeViewObjectExplorer.GetLangaugeBitmapByName;
         VPLUtil.SetServiceByName(VPLUtil.SERVICE_ComponentSelector, typeof(ComponentPointerSelector <EasyDataSet>));
         VPLUtil.PropertyValueLinkEditor  = ParameterValue.GetValueSelector();
         VPLUtil.PropertyValueLinkType    = typeof(PropertyValue);
         VPLUtil.delegateGetComponentID   = GetComponentID;
         VPLUtil.delegateGetComponentList = GetProjectComponents;
         VPLUtil.RemoveDialogCaches       = FrmObjectExplorer.RemoveDialogueCaches;
         VPLUtil.VariableMapTargetType    = typeof(ParameterValue);
         //
         VariableMap.ValueTypeSelectorType = typeof(SelectorEnumValueType);
         //
         XmlSerializerUtility.OnCreateWriterFromReader = new fnCreateWriterFromReader(CreateWriterFromReader);
         //
         MathNode.Init();
         MathNode.AddPlugin(typeof(MathNodeActionInput));
         //
         XmlUtil.AddKnownType("ParameterValue", typeof(ParameterValue));
         XmlUtil.AddKnownType("ActionClass", typeof(ActionClass));
         XmlUtil.AddKnownType("SetterPointer", typeof(SetterPointer));
         XmlUtil.AddKnownType("PropertyPointer", typeof(PropertyPointer));
         XmlUtil.AddKnownType("ClassPointer", typeof(ClassPointer));
         //
         XmlUtil.AddKnownType("MethodClass", typeof(MethodClass));
         XmlUtil.AddKnownType("CustomMethodPointer", typeof(CustomMethodPointer));
         XmlUtil.AddKnownType("ConstructorClass", typeof(ConstructorClass));
         XmlUtil.AddKnownType("GetterClass", typeof(GetterClass));
         XmlUtil.AddKnownType("PropertyClass", typeof(PropertyClass));
         //
         XmlUtil.AddKnownType("SetterClass", typeof(SetterClass));
         XmlUtil.AddKnownType("CustomPropertyPointer", typeof(CustomPropertyPointer));
         XmlUtil.AddKnownType("UserControl", typeof(UserControl));
         XmlUtil.AddKnownType("ConstObjectPointer", typeof(ConstObjectPointer));
         XmlUtil.AddKnownType("DataTypePointer", typeof(DataTypePointer));
         //
         XmlUtil.AddKnownType("Form", typeof(Form));
         XmlUtil.AddKnownType("LimnorWinApp", typeof(LimnorWinApp));
         XmlUtil.AddKnownType("ComponentPointer", typeof(ComponentPointer));
         XmlUtil.AddKnownType("TypePointerCollection", typeof(TypePointerCollection));
         XmlUtil.AddKnownType("MessageBox", typeof(MessageBox));
         //
         XmlUtil.AddKnownType("WebService", typeof(WebService));
         XmlUtil.AddKnownType("WebServiceAttribute", typeof(WebServiceAttribute));
         XmlUtil.AddKnownType("WebMethodAttribute", typeof(WebMethodAttribute));
         XmlUtil.AddKnownType("WebServiceBindingAttribute", typeof(WebServiceBindingAttribute));
         //
         XmlUtil.AddKnownType("LimnorKioskApp", typeof(LimnorKioskApp));
         XmlUtil.AddKnownType("LimnorConsole", typeof(LimnorConsole));
         XmlUtil.AddKnownType("Console", typeof(Console));
         XmlUtil.AddKnownType("Object", typeof(Object));
         XmlUtil.AddKnownType("MethodInfoPointer", typeof(MethodInfoPointer));
         //
         XmlUtil.AddKnownType("Control", typeof(Control));
         XmlUtil.AddKnownType("EventAction", typeof(EventAction));
         XmlUtil.AddKnownType("EventPointer", typeof(EventPointer));
         XmlUtil.AddKnownType("TaskID", typeof(TaskID));
         XmlUtil.AddKnownType("Button", typeof(Button));
         //
         XmlUtil.AddKnownType("ActionMethodReturn", typeof(ActionMethodReturn));
         XmlUtil.AddKnownType("MathNodeRoot", typeof(MathNodeRoot));
         XmlUtil.AddKnownType("EnumIconType", typeof(EnumIconType));
         XmlUtil.AddKnownType("Size", typeof(Size));
         XmlUtil.AddKnownType("Font", typeof(Font));
         //
         XmlUtil.AddKnownType("Color", typeof(Color));
         XmlUtil.AddKnownType("Point", typeof(Point));
         XmlUtil.AddKnownType("MathNodeVariable", typeof(MathNodeVariable));
         XmlUtil.AddKnownType("RaisDataType", typeof(RaisDataType));
         XmlUtil.AddKnownType("MathNodePropertyField", typeof(MathNodePropertyField));
         //
         XmlUtil.AddKnownType("ActionAssignment", typeof(ActionAssignment));
         XmlUtil.AddKnownType("MathNodePropertySetValue", typeof(MathNodePropertySetValue));
         XmlUtil.AddKnownType("TypePointer", typeof(TypePointer));
         XmlUtil.AddKnownType("AB_SingleAction", typeof(AB_SingleAction));
         XmlUtil.AddKnownType("ActionPortOut", typeof(ActionPortOut));
         //
         XmlUtil.AddKnownType("enumPositionType", typeof(enumPositionType));
         XmlUtil.AddKnownType("DrawingVariable", typeof(DrawingVariable));
         XmlUtil.AddKnownType("ActionPortIn", typeof(ActionPortIn));
         XmlUtil.AddKnownType("PropertyReturnAction", typeof(PropertyReturnAction));
         XmlUtil.AddKnownType("ParameterClass", typeof(ParameterClass));
         //
         XmlUtil.AddKnownType("MemberComponentId", typeof(MemberComponentId));
         XmlUtil.AddKnownType("MathNodeIntegral", typeof(MathNodeIntegral));
         XmlUtil.AddKnownType("MathExpItem", typeof(MathExpItem));
         XmlUtil.AddKnownType("MathExpGroup", typeof(MathExpGroup));
         XmlUtil.AddKnownType("EnumIncludeReturnPorts", typeof(EnumIncludeReturnPorts));
         //
         XmlUtil.AddKnownType("MathNodeArgument", typeof(MathNodeArgument));
         XmlUtil.AddKnownType("MathNodeAssign", typeof(MathNodeAssign));
         XmlUtil.AddKnownType("MathNodeCondition", typeof(MathNodeCondition));
         XmlUtil.AddKnownType("MathNodeConditions", typeof(MathNodeConditions));
         XmlUtil.AddKnownType("MathNodeDefaultValue", typeof(MathNodeDefaultValue));
         //
         XmlUtil.AddKnownType("MathNodeFunction", typeof(MathNodeFunction));
         XmlUtil.AddKnownType("MathNodeInc", typeof(MathNodeInc));
         XmlUtil.AddKnownType("IntegerVariable", typeof(IntegerVariable));
         XmlUtil.AddKnownType("Modulus", typeof(Modulus));
         XmlUtil.AddKnownType("MathNodeBitAnd", typeof(MathNodeBitAnd));
         //
         XmlUtil.AddKnownType("MathNodeBitOr", typeof(MathNodeBitOr));
         XmlUtil.AddKnownType("LogicVariable", typeof(LogicVariable));
         XmlUtil.AddKnownType("LogicFalse", typeof(LogicFalse));
         XmlUtil.AddKnownType("LogicTrue", typeof(LogicTrue));
         XmlUtil.AddKnownType("LogicNot", typeof(LogicNot));
         //
         XmlUtil.AddKnownType("LogicAnd", typeof(LogicAnd));
         XmlUtil.AddKnownType("LogicOr", typeof(LogicOr));
         XmlUtil.AddKnownType("LogicGreaterThan", typeof(LogicGreaterThan));
         XmlUtil.AddKnownType("LogicGreaterThanOrEqual", typeof(LogicGreaterThanOrEqual));
         XmlUtil.AddKnownType("LogicValueEquality", typeof(LogicValueEquality));
         //
         XmlUtil.AddKnownType("LogicValueInEquality", typeof(LogicValueInEquality));
         XmlUtil.AddKnownType("LogicLessThan", typeof(LogicLessThan));
         XmlUtil.AddKnownType("LogicLessThanOrEqual", typeof(LogicLessThanOrEqual));
         XmlUtil.AddKnownType("MathNodeMethodInvoke", typeof(MathNodeMethodInvoke));
         XmlUtil.AddKnownType("MathNodeParameter", typeof(MathNodeParameter));
         //
         XmlUtil.AddKnownType("MathNodeStringContains", typeof(MathNodeStringContains));
         XmlUtil.AddKnownType("MathNodeStringBegins", typeof(MathNodeStringBegins));
         XmlUtil.AddKnownType("MathNodeStringEnds", typeof(MathNodeStringEnds));
         XmlUtil.AddKnownType("MathNodeStringGT", typeof(MathNodeStringGT));
         XmlUtil.AddKnownType("MathNodeStringGET", typeof(MathNodeStringGET));
         //
         XmlUtil.AddKnownType("MathNodeStringLT", typeof(MathNodeStringLT));
         XmlUtil.AddKnownType("MathNodeStringLET", typeof(MathNodeStringLET));
         XmlUtil.AddKnownType("MathNodeStringEQ", typeof(MathNodeStringEQ));
         XmlUtil.AddKnownType("MathNodeStringValue", typeof(MathNodeStringValue));
         XmlUtil.AddKnownType("StringVariable", typeof(StringVariable));
         //
         XmlUtil.AddKnownType("MathNodeStringAdd", typeof(MathNodeStringAdd));
         XmlUtil.AddKnownType("MathNodeSum", typeof(MathNodeSum));
         XmlUtil.AddKnownType("MathNodeValue", typeof(MathNodeValue));
         XmlUtil.AddKnownType("MathNodeNumber", typeof(MathNodeNumber));
         XmlUtil.AddKnownType("MathNodeVariable", typeof(MathNodeVariable));
         //
         XmlUtil.AddKnownType("MathNodeVariableDummy", typeof(MathNodeVariableDummy));
         XmlUtil.AddKnownType("MathNodeSqrt", typeof(MathNodeSqrt));
         XmlUtil.AddKnownType("MathNodeAbs", typeof(MathNodeAbs));
         XmlUtil.AddKnownType("MathNodeAcos", typeof(MathNodeAcos));
         XmlUtil.AddKnownType("MathNodeAsin", typeof(MathNodeAsin));
         //
         XmlUtil.AddKnownType("MathNodeAtan", typeof(MathNodeAtan));
         XmlUtil.AddKnownType("MathNodeAtan2", typeof(MathNodeAtan2));
         XmlUtil.AddKnownType("MathNodeCeiling", typeof(MathNodeCeiling));
         XmlUtil.AddKnownType("MathNodeCos", typeof(MathNodeCos));
         XmlUtil.AddKnownType("MathNodeCos2", typeof(MathNodeCos2));
         //
         XmlUtil.AddKnownType("MathNodeCosh", typeof(MathNodeCosh));
         XmlUtil.AddKnownType("MathNodeFloor", typeof(MathNodeFloor));
         XmlUtil.AddKnownType("MathNodeIEEERemainder", typeof(MathNodeIEEERemainder));
         XmlUtil.AddKnownType("MathNodeConstE", typeof(MathNodeConstE));
         XmlUtil.AddKnownType("MathNodeConstPI", typeof(MathNodeConstPI));
         //
         XmlUtil.AddKnownType("MathNodeExp", typeof(MathNodeExp));
         XmlUtil.AddKnownType("MathNodeLog", typeof(MathNodeLog));
         XmlUtil.AddKnownType("MathNodeLog10", typeof(MathNodeLog10));
         XmlUtil.AddKnownType("MathNodeLogX", typeof(MathNodeLogX));
         XmlUtil.AddKnownType("MathNodeMax", typeof(MathNodeMax));
         //
         XmlUtil.AddKnownType("MathNodeMin", typeof(MathNodeMin));
         XmlUtil.AddKnownType("MathNodeRound", typeof(MathNodeRound));
         XmlUtil.AddKnownType("MathNodeRound2", typeof(MathNodeRound2));
         XmlUtil.AddKnownType("MathNodeSign", typeof(MathNodeSign));
         XmlUtil.AddKnownType("MathNodeSin", typeof(MathNodeSin));
         //
         XmlUtil.AddKnownType("MathNodeSinh", typeof(MathNodeSinh));
         XmlUtil.AddKnownType("MathNodeTan", typeof(MathNodeTan));
         XmlUtil.AddKnownType("MathNodeTanh", typeof(MathNodeTanh));
         XmlUtil.AddKnownType("MathNodeTruncate", typeof(MathNodeTruncate));
         XmlUtil.AddKnownType("MathNodePower", typeof(MathNodePower));
         //
         XmlUtil.AddKnownType("LinkLineNodeInPort", typeof(LinkLineNodeInPort));
         XmlUtil.AddKnownType("EventHandlerMethod", typeof(EventHandlerMethod));
         XmlUtil.AddKnownType("ComponentIconPublic", typeof(ComponentIconPublic));
         XmlUtil.AddKnownType("ComponentIconLocal", typeof(ComponentIconLocal));
         XmlUtil.AddKnownType("ComponentIconMethodReturnPointer", typeof(ComponentIconMethodReturnPointer));
         XmlUtil.AddKnownType("HandlerMathodID", typeof(HandlerMethodID));
         //
         XmlUtil.AddKnownType("AB_ActionString", typeof(AB_ActionString));
         XmlUtil.AddKnownType("LinkLineNode", typeof(LinkLineNode));
         XmlUtil.AddKnownType("PlusNode", typeof(PlusNode));
         XmlUtil.AddKnownType("DivNode", typeof(DivNode));
         XmlUtil.AddKnownType("MinusNode", typeof(MinusNode));
         //
         XmlUtil.AddKnownType("MultiplyNode", typeof(MultiplyNode));
         XmlUtil.AddKnownType("MultiplyNodeBig", typeof(MultiplyNodeBig));
         XmlUtil.AddKnownType("ArrayVariable", typeof(ArrayVariable));
         XmlUtil.AddKnownType("ComponentIconArrayPointer", typeof(ComponentIconArrayPointer));
         XmlUtil.AddKnownType("ArrayPointer", typeof(ArrayPointer));
         //
         XmlUtil.AddKnownType("ConstructorPointer", typeof(ConstructorPointer));
         XmlUtil.AddKnownType("LocalVariable", typeof(LocalVariable));
         XmlUtil.AddKnownType("CustomMethodReturnPointer", typeof(CustomMethodReturnPointer));
         XmlUtil.AddKnownType("AB_SubMethodAction", typeof(AB_SubMethodAction));
         XmlUtil.AddKnownType("ActionSubMethod", typeof(ActionSubMethod));
         XmlUtil.AddKnownType("SubMethodInfoPointer", typeof(SubMethodInfoPointer));
         //
         XmlUtil.AddKnownType("ComponentIconParameter", typeof(ComponentIconParameter));
         XmlUtil.AddKnownType("ParameterClassArrayIndex", typeof(ParameterClassArrayIndex));
         XmlUtil.AddKnownType("ParameterClassArrayItem", typeof(ParameterClassArrayItem));
         XmlUtil.AddKnownType("AB_ConditionBranch", typeof(AB_ConditionBranch));
         XmlUtil.AddKnownType("Label", typeof(System.Windows.Forms.Label));
         //
         XmlUtil.AddKnownType("PropertyValueClass", typeof(PropertyValueClass));
         XmlUtil.AddKnownType("MethodReturnMethod", typeof(MethodReturnMethod));
         XmlUtil.AddKnownType("AB_MethodReturn", typeof(AB_MethodReturn));
         XmlUtil.AddKnownType("MathNodeActionInput", typeof(MathNodeActionInput));
         XmlUtil.AddKnownType("InterfaceClass", typeof(InterfaceClass));
         //
         XmlUtil.AddKnownType("InterfaceElementMethod", typeof(InterfaceElementMethod));
         XmlUtil.AddKnownType("InterfacePointer", typeof(InterfacePointer));
         XmlUtil.AddKnownType("InterfaceElementEvent", typeof(InterfaceElementEvent));
         XmlUtil.AddKnownType("InterfaceElementProperty", typeof(InterfaceElementProperty));
         XmlUtil.AddKnownType("NamedDataType", typeof(NamedDataType));
         //
         XmlUtil.AddKnownType("InterfaceElementMethodParameter", typeof(InterfaceElementMethodParameter));
         XmlUtil.AddKnownType("PropertyOverride", typeof(PropertyOverride));
         XmlUtil.AddKnownType("CustomPropertyOverridePointer", typeof(CustomPropertyOverridePointer));
         XmlUtil.AddKnownType("ParameterClassBaseProperty", typeof(ParameterClassBaseProperty));
         XmlUtil.AddKnownType("BaseMethod", typeof(BaseMethod));
         //
         XmlUtil.AddKnownType("MethodOverride", typeof(MethodOverride));
         XmlUtil.AddKnownType("EventClass", typeof(EventClass));
         XmlUtil.AddKnownType("ActionInput", typeof(ActionInput));
         XmlUtil.AddKnownType("CustomEventPointer", typeof(CustomEventPointer));
         XmlUtil.AddKnownType("CustomMethodParameterPointer", typeof(CustomMethodParameterPointer));
         //
         XmlUtil.AddKnownType("InterfaceMethodPointer", typeof(InterfaceMethodPointer));
         XmlUtil.AddKnownType("InterfacePropertyPointer", typeof(InterfacePropertyPointer));
         XmlUtil.AddKnownType("InterfaceMethodPointer", typeof(InterfaceMethodPointer));
         XmlUtil.AddKnownType("InterfaceEventPointer", typeof(InterfaceEventPointer));
         XmlUtil.AddKnownType("InterfaceCustomProperty", typeof(InterfaceCustomProperty));
         //
         XmlUtil.AddKnownType("AB_DecisionTableActions", typeof(AB_DecisionTableActions));
         XmlUtil.AddKnownType("DecisionTable", typeof(DecisionTable));
         XmlUtil.AddKnownType("MathNodeRandom", typeof(MathNodeRandom));
         XmlUtil.AddKnownType("AB_ActionList", typeof(AB_ActionList));
         XmlUtil.AddKnownType("ActionItem", typeof(ActionItem));
         //
         XmlUtil.AddKnownType("ClassInstancePointer", typeof(ClassInstancePointer));
         XmlUtil.AddKnownType("AB_LoopActions", typeof(AB_LoopActions));
         XmlUtil.AddKnownType("ActionAssignInstance", typeof(ActionAssignInstance));
         XmlUtil.AddKnownType("AB_ForLoop", typeof(AB_ForLoop));
         XmlUtil.AddKnownType("ActionBranchParameter", typeof(ActionBranchParameter));
         //
         XmlUtil.AddKnownType("ComponentIconActionBranchParameter", typeof(ComponentIconActionBranchParameter));
         XmlUtil.AddKnownType("ActionBranchParameterPointer", typeof(ActionBranchParameterPointer));
         XmlUtil.AddKnownType("EnumImageFormat", typeof(EnumImageFormat));
         XmlUtil.AddKnownType("AB_Constructor", typeof(AB_Constructor));
         XmlUtil.AddKnownType("ExpressionValue", typeof(ExpressionValue));
         //
         XmlUtil.AddKnownType("CustomEventHandlerType", typeof(CustomEventHandlerType));
         XmlUtil.AddKnownType("MemberComponentIdCustom", typeof(MemberComponentIdCustom));
         XmlUtil.AddKnownType("Environment", typeof(Environment));
         XmlUtil.AddKnownType("String[]", typeof(String[]));
         XmlUtil.AddKnownType("StringCollectionVariable", typeof(StringCollectionVariable));
         //
         XmlUtil.AddKnownType("StringCollectionPointer", typeof(StringCollectionPointer));
         XmlUtil.AddKnownType("FireEventMethod", typeof(FireEventMethod));
         XmlUtil.AddKnownType("FieldPointer", typeof(FieldPointer));
         XmlUtil.AddKnownType("NullObjectPointer", typeof(NullObjectPointer));
         XmlUtil.AddKnownType("BreakActionMethod", typeof(BreakActionMethod));
         //
         XmlUtil.AddKnownType("AB_Break", typeof(AB_Break));
         XmlUtil.AddKnownType("AttributeConstructor", typeof(AttributeConstructor));
         XmlUtil.AddKnownType("IXDesignerViewer", typeof(IXDesignerViewer));
         XmlUtil.AddKnownType("EnumMaxButtonLocation", typeof(EnumMaxButtonLocation));
         XmlUtil.AddKnownType("ICustomEventMethodDescriptor", typeof(ICustomEventMethodDescriptor));
         //
         XmlUtil.AddKnownType("MultiPanes", typeof(MultiPanes));
         XmlUtil.AddKnownType("IAction", typeof(IAction));
         XmlUtil.AddKnownType("INonHostedObject", typeof(INonHostedObject));
         XmlUtil.AddKnownType("LimnorService", typeof(LimnorService));
         XmlUtil.AddKnownType("TextBox", typeof(TextBox));
         //
         XmlUtil.AddKnownType("GroupBox", typeof(GroupBox));
         XmlUtil.AddKnownType("EventPortOutExecuteMethod", typeof(EventPortOutExecuteMethod));
         XmlUtil.AddKnownType("EventPortOutExecuter", typeof(EventPortOutExecuter));
         XmlUtil.AddKnownType("ComponentIconMethod", typeof(ComponentIconMethod));
         XmlUtil.AddKnownType("EventPathData", typeof(EventPathData));
         //
         XmlUtil.AddKnownType("ComponentIconEvent", typeof(ComponentIconEvent));
         XmlUtil.AddKnownType("ComponentIconEventhandle", typeof(ComponentIconEventhandle));
         XmlUtil.AddKnownType("ActionAssignComponent", typeof(ActionAssignComponent));
         XmlUtil.AddKnownType("ComponentIconCollectionPointer", typeof(ComponentIconCollectionPointer));
         XmlUtil.AddKnownType("CollectionTypePointer", typeof(CollectionTypePointer));
         //
         XmlUtil.AddKnownType("CollectionVariable", typeof(CollectionVariable));
         XmlUtil.AddKnownType("ParameterClassCollectionItem", typeof(ParameterClassCollectionItem));
         XmlUtil.AddKnownType("CustomConstructorPointer", typeof(CustomConstructorPointer));
         XmlUtil.AddKnownType("ComponentIconProperty", typeof(ComponentIconProperty));
         XmlUtil.AddKnownType("EventPortOutSetProperty", typeof(EventPortOutSetProperty));
         //
         XmlUtil.AddKnownType("ComponentIconFireEvent", typeof(ComponentIconFireEvent));
         XmlUtil.AddKnownType("EventPortOutFirer", typeof(EventPortOutFirer));
         XmlUtil.AddKnownType("EventPortInFireEvent", typeof(EventPortInFireEvent));
         XmlUtil.AddKnownType("EventPortIn", typeof(EventPortIn));
         XmlUtil.AddKnownType("EventHandler", typeof(EventHandler));
         //
         XmlUtil.AddKnownType("EventArgs", typeof(EventArgs));
         XmlUtil.AddKnownType("MemberComponentIdInstance", typeof(MemberComponentIdInstance));
         XmlUtil.AddKnownType("MemberComponentIdCustomInstance", typeof(MemberComponentIdCustomInstance));
         XmlUtil.AddKnownType("LimnorScreenSaverApp", typeof(LimnorScreenSaverApp));
         XmlUtil.AddKnownType("CollectionPointer", typeof(CollectionPointer));
         //
         XmlUtil.AddKnownType("AB_CastAs", typeof(AB_CastAs));
         XmlUtil.AddKnownType("Component", typeof(Component));
         XmlUtil.AddKnownType("ComponentIconClass", typeof(ComponentIconClass));
         XmlUtil.AddKnownType("ComponentIconClassType", typeof(ComponentIconClassType));
         XmlUtil.AddKnownType("EventPortOutTypeAction", typeof(EventPortOutTypeAction));
         //
         XmlUtil.AddKnownType("EventPortOutClassTypeAction", typeof(EventPortOutClassTypeAction));
         XmlUtil.AddKnownType("MemberComponentIdDefaultInstance", typeof(MemberComponentIdDefaultInstance));
         XmlUtil.AddKnownType("ExceptionHandler", typeof(ExceptionHandler));
         XmlUtil.AddKnownType("ExceptionHandlerList", typeof(ExceptionHandlerList));
         XmlUtil.AddKnownType("SelectExceptionToHandle", typeof(SelectExceptionToHandle));
         //
         XmlUtil.AddKnownType("ComponentIconLocalSubScope", typeof(ComponentIconException));
         XmlUtil.AddKnownType("SubscopeActions", typeof(SubscopeActions));
         XmlUtil.AddKnownType("ComponentIconSubscopeVariable", typeof(ComponentIconSubscopeVariable));
         XmlUtil.AddKnownType("ComponentID", typeof(ComponentID));
         XmlUtil.AddKnownType("ListVariable", typeof(ListVariable));
         //
         XmlUtil.AddKnownType("ComponentIconListPointer", typeof(ComponentIconListPointer));
         XmlUtil.AddKnownType("ListTypePointer", typeof(ListTypePointer));
         XmlUtil.AddKnownType("RuntimeInstance", typeof(RuntimeInstance));
         XmlUtil.AddKnownType("ActionSubMethodGlobal", typeof(ActionSubMethodGlobal));
         XmlUtil.AddKnownType("SubMethodInfoPointerGlobal", typeof(SubMethodInfoPointerGlobal));
         //
         XmlUtil.AddKnownType("MethodActionForeachAtServer", typeof(MethodActionForeachAtServer));
         XmlUtil.AddKnownType("MethodActionForeachAtClient", typeof(MethodActionForeachAtClient));
         XmlUtil.AddKnownType("MethodDataTransfer", typeof(MethodDataTransfer));
         XmlUtil.AddKnownType("StringMapList", typeof(StringMapList));
         XmlUtil.AddKnownType("StringMap", typeof(StringMap));
         //
         XmlUtil.AddKnownType("ParameterValueArrayItem", typeof(ParameterValueArrayItem));
         XmlUtil.AddKnownType("NameTypePair", typeof(NameTypePair));
         XmlUtil.AddKnownType("InlineAction", typeof(InlineAction));
         XmlUtil.AddKnownType("AB_Group", typeof(AB_Group));
         XmlUtil.AddKnownType("FileDownloadEventArgs", typeof(FileDownloadEventArgs));
         //
         XmlUtil.AddKnownType("BrowserNavigationEventArgs", typeof(BrowserNavigationEventArgs));
         XmlUtil.AddKnownType("ConstValueSelector", typeof(ConstValueSelector));
         XmlUtil.AddKnownType("EnumBorderStyle", typeof(EnumBorderStyle));
         XmlUtil.AddKnownType("EnumBorderWidthStyle", typeof(EnumBorderWidthStyle));
         //
         XmlUtil.AddKnownType("WebClientEventHandlerMethodDownloadActions", typeof(WebClientEventHandlerMethodDownloadActions));
         XmlUtil.AddKnownType("WebMouseEventArgs", typeof(WebMouseEventArgs));
         XmlUtil.AddKnownType("WebKeyEventArgs", typeof(WebKeyEventArgs));
         XmlUtil.AddKnownType("FileDownloadEventHandler", typeof(FileDownloadEventHandler));
         //
         XmlUtil.AddKnownType("HtmlElementPointer", typeof(HtmlElementPointer));
         XmlUtil.AddKnownType("ComponentIconHtmlElement", typeof(ComponentIconHtmlElement));
         XmlUtil.AddKnownType("ComponentIconHtmlElementCurrent", typeof(ComponentIconHtmlElementCurrent));
         XmlUtil.AddKnownType("WebClientEventHandlerMethodClientActions", typeof(WebClientEventHandlerMethodClientActions));
         XmlUtil.AddKnownType("WebClientEventHandlerMethodServerActions", typeof(WebClientEventHandlerMethodServerActions));
         //
         XmlUtil.AddKnownType("IWebClientControl", typeof(IWebClientControl));
         XmlUtil.AddKnownType("WebMouseButton", typeof(WebMouseButton));
         XmlUtil.AddKnownType("IWebClientComponent", typeof(IWebClientComponent));
         XmlUtil.AddKnownType("CollectionComponents", typeof(CollectionComponentNames));
         //
         XmlUtil.AddKnownType("LogonUser", typeof(LogonUser));
         XmlUtil.AddKnownType("CustomInterfaceMethodPointer", typeof(CustomInterfaceMethodPointer));
         //
         Type[] ts = typeof(HtmlElement_body).Assembly.GetExportedTypes();
         for (int i = 0; i < ts.Length; i++)
         {
             if (typeof(HtmlElement_Base).IsAssignableFrom(ts[i]))
             {
                 XmlUtil.AddKnownType(ts[i].Name, ts[i]);
             }
         }
         XmlUtil.AddKnownType("WebClientValueCollection", typeof(WebClientValueCollection));
         //
         XmlUtil.AddKnownType("OLECMDF", typeof(OLECMDF));
         XmlUtil.AddKnownType("OLECMDID", typeof(OLECMDID));
         XmlUtil.AddKnownType("OLECMDEXECOPT", typeof(OLECMDEXECOPT));
         XmlUtil.AddKnownType("EnumPopupLevel", typeof(EnumPopupLevel));
         XmlUtil.AddKnownType("IWebBrowser2", typeof(IWebBrowser2));
         //
         XmlUtil.AddKnownType("ConnectionItem", typeof(ConnectionItem));
         XmlUtil.AddKnownType("PluginManager`1", typeof(PluginManager <>));
         XmlUtil.AddKnownType("MethodAssignActions", typeof(MethodAssignActions));
         XmlUtil.AddKnownType("AB_AssignActions", typeof(AB_AssignActions));
         XmlUtil.AddKnownType("ActionAttachEvent", typeof(ActionAttachEvent));
         XmlUtil.AddKnownType("ActionDetachEvent", typeof(ActionDetachEvent));
         //
         XmlUtil.AddKnownType("EventHandlerDataChanged", typeof(EventHandlerDataChanged));
         XmlUtil.AddKnownType("EventArgsDataName", typeof(EventArgsDataName));
         XmlUtil.AddKnownType("IPluginManager", typeof(IPluginManager));
         XmlUtil.AddKnownType("IPlugin", typeof(IPlugin));
         //
         XmlUtil.AddKnownType("ILicenseRequestHandler", typeof(ILicenseRequestHandler));
         XmlUtil.AddKnownType("EventArgsRegister", typeof(EventArgsRegister));
         XmlUtil.AddKnownType("CopyProtector", typeof(CopyProtector));
         XmlUtil.AddKnownType("EnumHideDialogButtons", typeof(EnumHideDialogButtons));
         XmlUtil.AddKnownType("VplMethodPointer", typeof(VplMethodPointer));
     }
 }
コード例 #6
0
 static void addKnownType(Type t)
 {
     XmlUtil.AddKnownType(t.Name, t);
 }
コード例 #7
0
    private static void addOtherTypes()
    {
        XmlUtil.AddKnownType("CodeArgumentReferenceExpression", typeof(CodeArgumentReferenceExpression));
        XmlUtil.AddKnownType("CodeArrayCreateExpression", typeof(CodeArrayCreateExpression));
        XmlUtil.AddKnownType("CodeArrayIndexerExpression", typeof(CodeArrayIndexerExpression));
        XmlUtil.AddKnownType("CodeBaseReferenceExpression", typeof(CodeBaseReferenceExpression));
        XmlUtil.AddKnownType("CodeBinaryOperatorExpression", typeof(CodeBinaryOperatorExpression));
        XmlUtil.AddKnownType("CodeCastExpression", typeof(CodeCastExpression));
        XmlUtil.AddKnownType("CodeDefaultValueExpression", typeof(CodeDefaultValueExpression));
        XmlUtil.AddKnownType("CodeDelegateCreateExpression", typeof(CodeDelegateCreateExpression));
        XmlUtil.AddKnownType("CodeDelegateInvokeExpression", typeof(CodeDelegateInvokeExpression));
        XmlUtil.AddKnownType("CodeDirectionExpression", typeof(CodeDirectionExpression));
        XmlUtil.AddKnownType("CodeEventReferenceExpression", typeof(CodeEventReferenceExpression));
        XmlUtil.AddKnownType("CodeFieldReferenceExpression", typeof(CodeFieldReferenceExpression));
        XmlUtil.AddKnownType("CodeIndexerExpression", typeof(CodeIndexerExpression));
        XmlUtil.AddKnownType("CodeMethodInvokeExpression", typeof(CodeMethodInvokeExpression));
        XmlUtil.AddKnownType("CodeMethodReferenceExpression", typeof(CodeMethodReferenceExpression));
        XmlUtil.AddKnownType("CodeObjectCreateExpression", typeof(CodeObjectCreateExpression));
        XmlUtil.AddKnownType("CodeParameterDeclarationExpression", typeof(CodeParameterDeclarationExpression));
        XmlUtil.AddKnownType("CodePrimitiveExpression", typeof(CodePrimitiveExpression));
        XmlUtil.AddKnownType("CodePropertyReferenceExpression", typeof(CodePropertyReferenceExpression));
        XmlUtil.AddKnownType("CodePropertySetValueReferenceExpression", typeof(CodePropertySetValueReferenceExpression));
        XmlUtil.AddKnownType("CodeSnippetExpression", typeof(CodeSnippetExpression));
        XmlUtil.AddKnownType("CodeThisReferenceExpression", typeof(CodeThisReferenceExpression));
        XmlUtil.AddKnownType("CodeTypeOfExpression", typeof(CodeTypeOfExpression));
        XmlUtil.AddKnownType("CodeTypeReferenceExpression", typeof(CodeTypeReferenceExpression));
        XmlUtil.AddKnownType("CodeVariableReferenceExpression", typeof(CodeVariableReferenceExpression));
        //
        XmlUtil.AddKnownType("CodeAssignStatement", typeof(CodeAssignStatement));
        XmlUtil.AddKnownType("CodeAttachEventStatement", typeof(CodeAttachEventStatement));
        XmlUtil.AddKnownType("CodeCommentStatement", typeof(CodeCommentStatement));
        XmlUtil.AddKnownType("CodeConditionStatement", typeof(CodeConditionStatement));
        XmlUtil.AddKnownType("CodeExpressionStatement", typeof(CodeExpressionStatement));
        XmlUtil.AddKnownType("CodeGotoStatement", typeof(CodeGotoStatement));
        XmlUtil.AddKnownType("CodeIterationStatement", typeof(CodeIterationStatement));
        XmlUtil.AddKnownType("CodeLabeledStatement", typeof(CodeLabeledStatement));
        XmlUtil.AddKnownType("CodeMethodReturnStatement", typeof(CodeMethodReturnStatement));
        XmlUtil.AddKnownType("CodeRemoveEventStatement", typeof(CodeRemoveEventStatement));
        XmlUtil.AddKnownType("CodeSnippetStatement", typeof(CodeSnippetStatement));
        XmlUtil.AddKnownType("CodeThrowExceptionStatement", typeof(CodeThrowExceptionStatement));
        XmlUtil.AddKnownType("CodeTryCatchFinallyStatement", typeof(CodeTryCatchFinallyStatement));
        XmlUtil.AddKnownType("CodeVariableDeclarationStatement", typeof(CodeVariableDeclarationStatement));

        //
        XmlUtil.AddKnownType("ProjectResources", typeof(ProjectResources));
        XmlUtil.AddKnownType("ResourceCodePointer", typeof(ResourceCodePointer));
        XmlUtil.AddKnownType("ResourcePointerString", typeof(ResourcePointerString));
        XmlUtil.AddKnownType("ResourcePointerImage", typeof(ResourcePointerImage));
        XmlUtil.AddKnownType("ResourcePointerIcon", typeof(ResourcePointerIcon));
        XmlUtil.AddKnownType("ResourcePointerAudio", typeof(ResourcePointerAudio));
        XmlUtil.AddKnownType("ResourcePointerFile", typeof(ResourcePointerFile));
        XmlUtil.AddKnownType("ResourcePointerFilePath", typeof(ResourcePointerFilePath));
        //
        XmlUtil.AddKnownType("MousePointer", typeof(MousePointer));
        XmlUtil.AddKnownType("Keyboard", typeof(Keyboard));
        XmlUtil.AddKnownType("HotKeyList", typeof(HotKeyList));
        XmlUtil.AddKnownType("WindowsManager", typeof(WindowsManager));
        XmlUtil.AddKnownType("WindowsRegistry", typeof(WindowsRegistry));
        XmlUtil.AddKnownType("ExecuteFile", typeof(ExecuteFile));
        XmlUtil.AddKnownType("ApplicationConfiguration", typeof(ApplicationConfiguration));
        XmlUtil.AddKnownType("CategoryList", typeof(CategoryList));
        XmlUtil.AddKnownType("MathematicExpression", typeof(MathematicExpression));
        XmlUtil.AddKnownType("ServiceBase", typeof(ServiceBase));
        XmlUtil.AddKnownType("Environment", typeof(Environment));
        XmlUtil.AddKnownType("MailSender", typeof(MailSender));
        XmlUtil.AddKnownType("OperationFailEventArgs", typeof(OperationFailEventArgs));
        XmlUtil.AddKnownType("OperationFailHandler", typeof(OperationFailHandler));
        XmlUtil.AddKnownType("EnumCharEncode", typeof(EnumCharEncode));
        XmlUtil.AddKnownType("FtpClient", typeof(FtpClient));
        XmlUtil.AddKnownType("FtpTransferEventArgs", typeof(FtpTransferEventArgs));
        XmlUtil.AddKnownType("FtpFileInfo", typeof(FtpFileInfo));
        XmlUtil.AddKnownType("TextBoxNumber", typeof(TextBoxNumber));
        XmlUtil.AddKnownType("LabelNumber", typeof(LabelNumber));
        XmlUtil.AddKnownType("ButtonKey", typeof(ButtonKey));
        XmlUtil.AddKnownType("KeyPairList", typeof(KeyPairList));
        XmlUtil.AddKnownType("KeyPair", typeof(KeyPair));
        XmlUtil.AddKnownType("StringTool", typeof(StringTool));
        XmlUtil.AddKnownType("Capturer", typeof(Capturer));
        XmlUtil.AddKnownType("CopyProtector", typeof(CopyProtector));
        XmlUtil.AddKnownType("OskWindow", typeof(OskWindow));
        XmlUtil.AddKnownType("PrinterManager", typeof(PrinterManager));
        XmlUtil.AddKnownType("RS232", typeof(RS232));
        XmlUtil.AddKnownType("ScheduleTimer", typeof(ScheduleTimer));
        XmlUtil.AddKnownType("Scheduler", typeof(Scheduler));
        XmlUtil.AddKnownType("EnumScheduleType", typeof(EnumScheduleType));
        XmlUtil.AddKnownType("DialogStringCollection", typeof(DialogStringCollection));
        XmlUtil.AddKnownType("StringCollectionEditor", typeof(StringCollectionEditor));
        XmlUtil.AddKnownType("MciMediaPlayer", typeof(MciMediaPlayer));
        XmlUtil.AddKnownType("RemotingHost", typeof(RemotingHost));
        XmlUtil.AddKnownType("EventArgsSchedule", typeof(EventArgsSchedule));
        XmlUtil.AddKnownType("MonthCalendar", typeof(MonthCalendar));
        XmlUtil.AddKnownType("PropertyClassWebClient", typeof(PropertyClassWebClient));
        XmlUtil.AddKnownType("PropertyClassWebServer", typeof(PropertyClassWebServer));
        XmlUtil.AddKnownType("SessionVariableCollection", typeof(SessionVariableCollection));
        XmlUtil.AddKnownType("SessionVariable", typeof(SessionVariable));
        //activate TreeViewX.AddKnownTypes()
        ///////
        XmlUtil.AddKnownType("PointFX", typeof(PointFX));
        TreeViewX.Init();
        //========
        XmlUtil.AddKnownType("WebBrowserControl", typeof(WebBrowserControl));
        XmlUtil.AddKnownType("RichTextBoxEx", typeof(RichTextBoxEx));
        //
        string sDir       = Path.GetDirectoryName(typeof(DesignService).Assembly.Location);
        string toolboxCfg = Path.Combine(sDir, "LimnorToolbox.xml");

        toolboxCfg = Path.Combine(sDir, "LimnorWebToolbox.xml");
        XmlUtil.AddKnownTypes(toolboxCfg);
    }
コード例 #8
0
    private static void addDrawingTypes()
    {
        XmlUtil.AddKnownType("ScreenSaverBackgroundForm", typeof(ScreenSaverBackgroundForm));
        XmlUtil.AddKnownType("DrawingPage", typeof(DrawingPage));
        XmlUtil.AddKnownType("DrawingItem", typeof(DrawingItem));
        XmlUtil.AddKnownType("DrawingLayerHeader", typeof(DrawingLayerHeader));
        XmlUtil.AddKnownType("DrawingLayerCollection", typeof(DrawingLayerCollection));
        XmlUtil.AddKnownType("CPoint", typeof(CPoint));
        XmlUtil.AddKnownType("DrawingControl", typeof(DrawingControl));
        XmlUtil.AddKnownType("DrawingGroupBox", typeof(DrawingGroupBox));
        XmlUtil.AddKnownType("DrawingLayer", typeof(DrawingLayer));
        XmlUtil.AddKnownType("DrawCoordinates", typeof(DrawCoordinates));
        XmlUtil.AddKnownType("PageAttrs", typeof(PageAttrs));

        XmlUtil.AddKnownType("DrawLine", typeof(DrawLine));
        XmlUtil.AddKnownType("Draw2DLine", typeof(Draw2DLine));

        XmlUtil.AddKnownType("DrawLineArrow", typeof(DrawLineArrow));
        XmlUtil.AddKnownType("Draw2DLineArrow", typeof(Draw2DLineArrow));

        XmlUtil.AddKnownType("DrawLineArrow2", typeof(DrawLineArrow2));
        XmlUtil.AddKnownType("Draw2DLineArrow2", typeof(Draw2DLineArrow2));

        XmlUtil.AddKnownType("DrawCircle", typeof(DrawCircle));
        XmlUtil.AddKnownType("Draw2DCircle", typeof(Draw2DCircle));

        XmlUtil.AddKnownType("DrawText", typeof(DrawText));
        XmlUtil.AddKnownType("Draw2DText", typeof(Draw2DText));

        XmlUtil.AddKnownType("DrawArc", typeof(DrawArc));
        XmlUtil.AddKnownType("Draw2DArc", typeof(Draw2DArc));

        XmlUtil.AddKnownType("DrawEllips", typeof(DrawEllipse));
        XmlUtil.AddKnownType("Draw2DEllipse", typeof(Draw2DEllipse));

        XmlUtil.AddKnownType("DrawBezier", typeof(DrawBezier));
        XmlUtil.AddKnownType("Draw2DBezier", typeof(Draw2DBezier));

        XmlUtil.AddKnownType("DrawRect", typeof(DrawRect));
        XmlUtil.AddKnownType("Draw2DRect", typeof(Draw2DRect));

        XmlUtil.AddKnownType("DrawClosedCurve", typeof(DrawClosedCurve));
        XmlUtil.AddKnownType("Draw2DClosedCurve", typeof(Draw2DClosedCurve));

        XmlUtil.AddKnownType("DrawPolygon", typeof(DrawPolygon));
        XmlUtil.AddKnownType("Draw2DPolygon", typeof(Draw2DPolygon));

        XmlUtil.AddKnownType("DrawImage", typeof(DrawImage));
        XmlUtil.AddKnownType("Draw2DImage", typeof(Draw2DImage));

        XmlUtil.AddKnownType("DrawRoundRectangle", typeof(DrawRoundRectangle));
        XmlUtil.AddKnownType("Draw2DRoundRectangle", typeof(Draw2DRoundRectangle));

        XmlUtil.AddKnownType("DrawTextRect", typeof(DrawTextRect));
        XmlUtil.AddKnownType("Draw2DTextRect", typeof(Draw2DTextRect));

        XmlUtil.AddKnownType("DrawRectText", typeof(DrawRectText));
        XmlUtil.AddKnownType("Draw2DRectText", typeof(Draw2DRectText));
        //
        XmlUtil.AddKnownType("Draw2DGroupBox", typeof(Draw2DGroupBox));
        XmlUtil.AddKnownType("DrawGroupBox", typeof(DrawGroupBox));
        //
        XmlUtil.AddKnownType("Draw2DDataRepeater", typeof(Draw2DDataRepeater));
        XmlUtil.AddKnownType("DrawDataRepeater", typeof(DrawDataRepeater));
        //
        XmlUtil.AddKnownType("Draw2DTable", typeof(Draw2DTable));
        XmlUtil.AddKnownType("DrawTable", typeof(DrawTable));
    }