Skip to content

Commit

Permalink
892683: sample changes added
Browse files Browse the repository at this point in the history
  • Loading branch information
SumathiSumi committed Jun 27, 2024
1 parent 00edad6 commit 303edf8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@
node.Width = 50;
//Initializing the default node's shape style.
node.Style = new ShapeStyle() { Fill = "#6CA0DC", StrokeColor = "#6CA0DC" };
node.Annotations = new DiagramObjectCollection<ShapeAnnotation>()
{
new ShapeAnnotation
{
Content = node.Annotations[0].Content,
Style = new TextStyle() { Color = "white", Bold = true },
}
};
node.Annotations[0].Style = new TextStyle() { Color = "white", Bold = true };
}
//Method to set connector's default properties
private void OnConnectorCreating(IDiagramObject connector)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@
node.Width = 100;
//Initializing the default node's shape style.
node.Style = new ShapeStyle() { Fill = "darkcyan", StrokeWidth = 3, StrokeColor = "Black" };
node.Annotations = new DiagramObjectCollection<ShapeAnnotation>()
{
new ShapeAnnotation
{
Content = node.Annotations[0].Content,
Style = new TextStyle() { Color = "white", Bold = true },
}
};
node.Annotations[0].Style = new TextStyle() { Color = "white", Bold = true };
}

private void OnConnectorCreating(IDiagramObject connector)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@
node.Width = 100;
//Initializing the default node's shape style
node.Style = new ShapeStyle() { Fill = "darkcyan", StrokeWidth = 3, StrokeColor = "Black" };
node.Annotations = new DiagramObjectCollection<ShapeAnnotation>()
{
new ShapeAnnotation { Style = new TextStyle() { Color = "white", Bold = true },Content = node.Annotations[0].Content }
};
node.Annotations[0].Style = new TextStyle() { Color = "white", Bold = true };
}

private void OnConnectorCreating(IDiagramObject connector)
Expand Down

0 comments on commit 303edf8

Please sign in to comment.