Skip to content

Commit 28320d6

Browse files
Merge pull request #66 from SyncfusionExamples/BLAZ-1004829-SampleChange5
1004829: Blazor UG Update
2 parents 892f145 + f623dd8 commit 28320d6

18 files changed

Lines changed: 74 additions & 74 deletions

Diagram/Server/Pages/BpmnEditor/BpmnConnectors/Association.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
@using Syncfusion.Blazor.Diagram
44

55
@* Initialize Diagram *@
6-
<SfDiagramComponent Height="600px" Connectors="@connectors" />
6+
<SfDiagramComponent Height="600px" Connectors="@_connectors" />
77

88
@code
99
{
1010
// Create connector and store it in the connector collection.
11-
private DiagramObjectCollection<Connector> connectors;
11+
private DiagramObjectCollection<Connector> _connectors;
1212

1313
protected override void OnInitialized()
1414
{
15-
connectors = new DiagramObjectCollection<Connector>();
15+
_connectors = new DiagramObjectCollection<Connector>();
1616
Connector connector = new Connector()
1717
{
1818
// Unique Id of the connector.
@@ -26,6 +26,6 @@
2626
Flow = BpmnFlowType.AssociationFlow,
2727
}
2828
};
29-
connectors.Add(connector);
29+
_connectors.Add(connector);
3030
}
3131
}

Diagram/Server/Pages/BpmnEditor/BpmnConnectors/Message.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
@using Syncfusion.Blazor.Diagram
44

55
@* Initialize Diagram *@
6-
<SfDiagramComponent Height="600px" Connectors="@connectors" />
6+
<SfDiagramComponent Height="600px" Connectors="@_connectors" />
77

88
@code
99
{
1010
// Create connector and store it in the connector collection.
11-
private DiagramObjectCollection<Connector> connectors;
11+
private DiagramObjectCollection<Connector> _connectors;
1212

1313
protected override void OnInitialized()
1414
{
15-
connectors = new DiagramObjectCollection<Connector>();
15+
_connectors = new DiagramObjectCollection<Connector>();
1616
Connector connector = new Connector()
1717
{
1818
// Unique Id of the connector.
@@ -26,6 +26,6 @@
2626
Flow = BpmnFlowType.MessageFlow,
2727
}
2828
};
29-
connectors.Add(connector);
29+
_connectors.Add(connector);
3030
}
3131
}

Diagram/Server/Pages/BpmnEditor/BpmnConnectors/Sequence.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
@using Syncfusion.Blazor.Diagram
44

55
@* Initialize Diagram *@
6-
<SfDiagramComponent Height="600px" Connectors="@connectors" />
6+
<SfDiagramComponent Height="600px" Connectors="@_connectors" />
77

88
@code
99
{
1010
// Create connector and store it in the connector collection.
11-
private DiagramObjectCollection<Connector> connectors;
11+
private DiagramObjectCollection<Connector> _connectors;
1212

1313
protected override void OnInitialized()
1414
{
15-
connectors = new DiagramObjectCollection<Connector>();
15+
_connectors = new DiagramObjectCollection<Connector>();
1616
Connector connector = new Connector()
1717
{
1818
// Unique Id of the connector.
@@ -26,6 +26,6 @@
2626
Flow = BpmnFlowType.SequenceFlow,
2727
}
2828
};
29-
connectors.Add(connector);
29+
_connectors.Add(connector);
3030
}
3131
}

Diagram/Server/Pages/BpmnEditor/BpmnExpandedSubProcess/AddChildren.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
@using Syncfusion.Blazor.Diagram
44

55
@* Initialize Diagram *@
6-
<SfDiagramComponent Height="600px" Nodes="@nodes" />
6+
<SfDiagramComponent Height="600px" Nodes="@_nodes" />
77

88
@code
99
{
1010
// Initialize node collection with Node.
11-
private DiagramObjectCollection<Node> nodes;
11+
private DiagramObjectCollection<Node> _nodes;
1212

1313
protected override void OnInitialized()
1414
{
15-
nodes = new DiagramObjectCollection<Node>();
15+
_nodes = new DiagramObjectCollection<Node>();
1616
Node node1 = new Node()
1717
{
1818
ID = "node1",
@@ -22,7 +22,7 @@
2222
Height = 70,
2323
Shape = new BpmnActivity() { ActivityType = BpmnActivityType.Task }
2424
};
25-
nodes.Add(node1);
25+
_nodes.Add(node1);
2626
Node node2 = new Node()
2727
{
2828
ID = "node2",
@@ -36,6 +36,6 @@
3636
Children = new DiagramObjectCollection<string>() { "node1" }
3737
}
3838
};
39-
nodes.Add(node2);
39+
_nodes.Add(node2);
4040
}
4141
}

Diagram/Server/Pages/BpmnEditor/BpmnExpandedSubProcess/BpmnExpandedSubProcessSample.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
@using Syncfusion.Blazor.Diagram
44

55
@* Initialize Diagram *@
6-
<SfDiagramComponent Height="600px" Nodes="@nodes" />
6+
<SfDiagramComponent Height="600px" Nodes="@_nodes" />
77

88
@code
99
{
1010
// Initialize node collection with Node.
11-
private DiagramObjectCollection<Node> nodes;
11+
private DiagramObjectCollection<Node> _nodes;
1212

1313
protected override void OnInitialized()
1414
{
15-
nodes = new DiagramObjectCollection<Node>();
15+
_nodes = new DiagramObjectCollection<Node>();
1616
Node node = new Node()
1717
{
1818
// Position of the node.
@@ -26,6 +26,6 @@
2626
// Sets the shape to activity.
2727
Shape = new BpmnExpandedSubProcess()
2828
};
29-
nodes.Add(node);
29+
_nodes.Add(node);
3030
}
3131
}

Diagram/Server/Pages/BpmnEditor/BpmnExpandedSubProcess/ExpandedSubProcessAdhoc.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
@using Syncfusion.Blazor.Diagram
44

55
@* Initialize Diagram *@
6-
<SfDiagramComponent Height="600px" Nodes="@nodes" />
6+
<SfDiagramComponent Height="600px" Nodes="@_nodes" />
77

88
@code
99
{
1010
// Initialize the node collection with node.
11-
private DiagramObjectCollection<Node> nodes;
11+
private DiagramObjectCollection<Node> _nodes;
1212

1313
protected override void OnInitialized()
1414
{
15-
nodes = new DiagramObjectCollection<Node>();
15+
_nodes = new DiagramObjectCollection<Node>();
1616
Node node = new Node()
1717
{
1818
// Position of the node.
@@ -29,6 +29,6 @@
2929
IsAdhoc = true,
3030
}
3131
};
32-
nodes.Add(node);
32+
_nodes.Add(node);
3333
}
3434
}

Diagram/Server/Pages/BpmnEditor/BpmnExpandedSubProcess/ExpandedSubProcessCompensation.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
@using Syncfusion.Blazor.Diagram
44

55
@* Initialize Diagram *@
6-
<SfDiagramComponent Height="600px" Nodes="@nodes" />
6+
<SfDiagramComponent Height="600px" Nodes="@_nodes" />
77

88
@code
99
{
1010
// Initialize the node collection with node.
11-
private DiagramObjectCollection<Node> nodes;
11+
private DiagramObjectCollection<Node> _nodes;
1212

1313
protected override void OnInitialized()
1414
{
15-
nodes = new DiagramObjectCollection<Node>();
15+
_nodes = new DiagramObjectCollection<Node>();
1616
Node node = new Node()
1717
{
1818
// Position of the node.
@@ -29,6 +29,6 @@
2929
IsCompensation = true,
3030
}
3131
};
32-
nodes.Add(node);
32+
_nodes.Add(node);
3333
}
3434
}

Diagram/Server/Pages/BpmnEditor/BpmnExpandedSubProcess/ExpandedSubProcessLoop.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
@using Syncfusion.Blazor.Diagram
44

55
@* Initialize Diagram *@
6-
<SfDiagramComponent Height="600px" Nodes="@nodes" />
6+
<SfDiagramComponent Height="600px" Nodes="@_nodes" />
77

88
@code
99
{
1010
// Initialize the node collection with node.
11-
private DiagramObjectCollection<Node> nodes;
11+
private DiagramObjectCollection<Node> _nodes;
1212

1313
protected override void OnInitialized()
1414
{
15-
nodes = new DiagramObjectCollection<Node>();
15+
_nodes = new DiagramObjectCollection<Node>();
1616
Node node = new Node()
1717
{
1818
// Position of the node.
@@ -29,6 +29,6 @@
2929
Loop = BpmnLoopCharacteristic.Standard,
3030
}
3131
};
32-
nodes.Add(node);
32+
_nodes.Add(node);
3333
}
3434
}

Diagram/Server/Pages/BpmnEditor/BpmnExpandedSubProcess/ExpandedSubProcessType.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
@using Syncfusion.Blazor.Diagram
44

55
@* Initialize Diagram *@
6-
<SfDiagramComponent Height="600px" Nodes="@nodes" />
6+
<SfDiagramComponent Height="600px" Nodes="@_nodes" />
77

88
@code
99
{
1010
// Initialize the node collection with node.
11-
private DiagramObjectCollection<Node> nodes;
11+
private DiagramObjectCollection<Node> _nodes;
1212

1313
protected override void OnInitialized()
1414
{
15-
nodes = new DiagramObjectCollection<Node>();
15+
_nodes = new DiagramObjectCollection<Node>();
1616
Node node = new Node()
1717
{
1818
// Position of the node.
@@ -29,6 +29,6 @@
2929
SubProcessType = BpmnSubProcessType.Event
3030
}
3131
};
32-
nodes.Add(node);
32+
_nodes.Add(node);
3333
}
3434
}

Diagram/Wasm/Pages/BpmnEditor/BpmnConnectors/Association.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
@using Syncfusion.Blazor.Diagram
44

55
@* Initialize Diagram *@
6-
<SfDiagramComponent Height="600px" Connectors="@connectors" />
6+
<SfDiagramComponent Height="600px" Connectors="@_connectors" />
77

88
@code
99
{
1010
// Create connector and store it in the connector collection.
11-
private DiagramObjectCollection<Connector> connectors;
11+
private DiagramObjectCollection<Connector> _connectors;
1212

1313
protected override void OnInitialized()
1414
{
15-
connectors = new DiagramObjectCollection<Connector>();
15+
_connectors = new DiagramObjectCollection<Connector>();
1616
Connector connector = new Connector()
1717
{
1818
// Unique Id of the connector.
@@ -26,6 +26,6 @@
2626
Flow = BpmnFlowType.AssociationFlow,
2727
}
2828
};
29-
connectors.Add(connector);
29+
_connectors.Add(connector);
3030
}
3131
}

0 commit comments

Comments
 (0)