private void DeserializeTab(XContainer tabElement)
 {
     var tab = new Tab
     {
         Caption = tabElement.ElementValue("Caption"),
         Id = Convert.ToInt32(tabElement.ElementValue("Id")),
         Order = !String.IsNullOrEmpty(tabElement.ElementValue("Order"))
                     ? (int?)Convert.ToInt32(tabElement.ElementValue("Order"))
                     : null
     };
     type.Tabs.Add(tab);
 }
 private void DeserializeProperty(XContainer propElement)
 {
     var prop = new GenericProperty
     {
         Name = propElement.ElementValue("Name"),
         Alias = propElement.ElementValue("Alias"),
         Type = propElement.ElementValue("Type"),
         Definition = propElement.ElementValue("Definition"),
         Tab = propElement.ElementValue("Tab"),
         Mandatory = Convert.ToBoolean(propElement.ElementValue("Mandatory")),
         Validation = propElement.ElementValue("Validation"),
         Description = propElement.ElementValue("Description")
     };
     type.GenericProperties.Add(prop);
 }