protected virtual void SaveCellProperties(TableCell cell, IConfigurationElement configCell) { if (ControlFactory.Instance.KnownTypes.ContainsKey("TableCell")) { ControlFactory.ControlDescriptor descriptor = ControlFactory.Instance.KnownTypes["TableCell"]; foreach (string name in descriptor.EditableProperties.Keys) { configCell.AddAttribute(name).Value = ReflectionServices.ToString(ReflectionServices.ExtractValue(cell, name)); } } }
protected virtual void LoadCellProperties(TableCell cell, IConfigurationElement configCell) { if (ControlFactory.Instance.KnownTypes.ContainsKey("TableCell")) { ControlFactory.ControlDescriptor descriptor = ControlFactory.Instance.KnownTypes["TableCell"]; foreach (string name in descriptor.EditableProperties.Keys) { if (configCell.Attributes.ContainsKey(name)) { ReflectionServices.SetValue(cell, name, configCell.GetAttributeReference(name).Value); } } } }