예제 #1
0
 public static void SetNodePropertiesToCircleDiagramNode(
     this CircleDiagramNodeProperies nodePropeties, CircleDiagramNode node)
 {
     if (node == null || nodePropeties == null)
     {
         return;
     }
     node.ChangeParametersValues(nodePropeties.Text, nodePropeties.StartAngle,
                                 nodePropeties.SweepAngle, nodePropeties.StartCircleNumber,
                                 nodePropeties.CountCircles, new SolidBrush(nodePropeties.BackgroundColor),
                                 new SolidBrush(nodePropeties.TextColor), nodePropeties.TextFont);
 }
예제 #2
0
 public static void GetNodePropertiesFromCircleDiagramNode(this CircleDiagramNodeProperies nodePropeties,
                                                           CircleDiagramNode node)
 {
     if (node == null || nodePropeties == null)
     {
         return;
     }
     nodePropeties.Name              = node.Name;
     nodePropeties.BackgroundColor   = SerializeUtils.BrushToColor(node.Background);
     nodePropeties.StartAngle        = node.StartAngle;
     nodePropeties.SweepAngle        = node.SweepAngle;
     nodePropeties.StartCircleNumber = node.StartCircleNumber;
     nodePropeties.CountCircles      = node.CountCircles;
     nodePropeties.Text              = node.Text;
     nodePropeties.TextColor         = SerializeUtils.BrushToColor(node.TextBrush);
     nodePropeties.TextFont          = node.TextFont;
 }