private void InitStaticFields(string name, string parent)
        {
            TextFieldType nameField = new TextFieldType(
                "Name",
                "The name of the resource"
                );

            InternalRefFieldType familyField = new InternalRefFieldType(
                "Parent name",
                "The fully qualified name of parent of this resource"
                );

            this.fieldName.Content = (SNAP.ResourceFields.IResourceWinformsUI)
                Controller.CreateResourceUI(new TextFieldValue(name, nameField));

            this.fieldParent.Content = (SNAP.ResourceFields.IResourceWinformsUI)
                Controller.CreateResourceUI(new InternalRefFieldValue(parent, familyField));
        }
        private static IResourceType LoadResourceField(System.Xml.XmlNode fieldNode)
        {
            IResourceType field = null;
            switch (fieldNode.Name)
            {
                case "text":
                    field = new TextFieldType();
                    break;

                case "internal_ref":
                    field = new InternalRefFieldType();
                    break;

                case "external_ref":
                    field = new ExternalRefFieldType();
                    break;

                case "numeric":
                    field = new NumericFieldType();
                    break;

                case "enum":
                    field = new EnumFieldType();
                    break;
            }

            if (field != null)
                field.LoadFromXML(fieldNode);

            return field;
        }