示例#1
0
文件: TableZone.cs 项目: t1b1c/lwas
 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));
         }
     }
 }
示例#2
0
文件: TableZone.cs 项目: t1b1c/lwas
 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);
             }
         }
     }
 }