Skip to content

Commit 7c30411

Browse files
1007610: UG Correction
1 parent 1e4e3c5 commit 7c30411

56 files changed

Lines changed: 316 additions & 316 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Diagram/Server/Pages/Ports/ActionofPorts/TooltipForSpecificPort.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
@using Syncfusion.Blazor.Diagram
44

5-
<SfDiagramComponent Height="700px" Nodes="@nodes" ></SfDiagramComponent>
5+
<SfDiagramComponent Height="700px" Nodes="@_nodes" ></SfDiagramComponent>
66

77
@code
88
{
9-
private DiagramObjectCollection<Node> nodes;
9+
private DiagramObjectCollection<Node> _nodes;
1010

1111
protected override void OnInitialized()
1212
{
13-
nodes = new DiagramObjectCollection<Node>();
13+
_nodes = new DiagramObjectCollection<Node>();
1414
Node node = new Node()
1515
{
1616
ID = "node1",
@@ -35,7 +35,7 @@
3535
}
3636
}
3737
};
38-
nodes.Add(node);
38+
_nodes.Add(node);
3939
Node node2 = new Node()
4040
{
4141
ID = "node2",
@@ -61,6 +61,6 @@
6161
}
6262
}
6363
};
64-
nodes.Add(node2);
64+
_nodes.Add(node2);
6565
}
6666
}

Diagram/Server/Pages/Ports/PortIsSticky/PortIsSticky.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
@using Syncfusion.Blazor.Popups
55
@using Syncfusion.Blazor.Buttons
66

7-
<SfDiagramComponent @ref="@diagram" Width="1000px" Height="500px" Nodes="@nodes" />
7+
<SfDiagramComponent @ref="@_diagram" Width="1000px" Height="500px" Nodes="@_nodes" />
88

99
@code
1010
{
1111
//Define diagram's nodes collection
12-
private DiagramObjectCollection<Node> nodes;
12+
private DiagramObjectCollection<Node> _nodes;
1313
//Reference the diagram
14-
private SfDiagramComponent diagram;
14+
private SfDiagramComponent _diagram;
1515

1616
protected override void OnInitialized()
1717
{
1818
//Intialize diagram's nodes collection
19-
nodes = new DiagramObjectCollection<Node>();
19+
_nodes = new DiagramObjectCollection<Node>();
2020
Node node = new Node()
2121
{
2222
ID = "node1",
@@ -43,6 +43,6 @@
4343
}
4444
},
4545
};
46-
nodes.Add(node);
46+
_nodes.Add(node);
4747
}
4848
}

Diagram/Server/Pages/Swimlanes/ChildrenSpacingProperty/ChildrenSpacingProperty.razor

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

66
<!-- Diagram component rendering a swimlane layout -->
7-
<SfDiagramComponent Height="600px" Width="90%" Swimlanes="@swimlaneCollections">
7+
<SfDiagramComponent Height="600px" Width="90%" Swimlanes="@_swimlaneCollections">
88
</SfDiagramComponent>
99

1010
@code
1111
{
1212
/// <summary>
1313
/// Collection of swimlanes used in the SfDiagramComponent.
1414
/// </summary>
15-
private DiagramObjectCollection<Swimlane> swimlaneCollections = new DiagramObjectCollection<Swimlane>();
15+
private DiagramObjectCollection<Swimlane> _swimlaneCollections = new DiagramObjectCollection<Swimlane>();
1616

1717
/// <summary>
1818
/// Initializes the swimlane, phases, lanes, and child nodes for the diagram.
@@ -40,7 +40,7 @@
4040
};
4141

4242
// Create swimlane structure
43-
swimlaneCollections = new DiagramObjectCollection<Swimlane>()
43+
_swimlaneCollections = new DiagramObjectCollection<Swimlane>()
4444
{
4545
new Swimlane()
4646
{

Diagram/Server/Pages/Swimlanes/SwimlaneCreation/SwimlaneCreation.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
@using Syncfusion.Blazor.Diagram
44

5-
<SfDiagramComponent Height="600px" Swimlanes="@SwimlaneCollections" NodeCreating="@OnNodeCreating" />
5+
<SfDiagramComponent Height="600px" Swimlanes="@_swimlaneCollections" NodeCreating="@OnNodeCreating" />
66

77
@code
88
{
99
//Define diagram's swimlane collection
10-
private DiagramObjectCollection<Swimlane> SwimlaneCollections = new DiagramObjectCollection<Swimlane>();
10+
private DiagramObjectCollection<Swimlane> _swimlaneCollections = new DiagramObjectCollection<Swimlane>();
1111

1212
protected override void OnInitialized()
1313
{
@@ -20,12 +20,12 @@
2020
Width = 450,
2121
};
2222
// Add swimlane
23-
SwimlaneCollections.Add(swimlane);
23+
_swimlaneCollections.Add(swimlane);
2424
}
2525

26-
private void OnNodeCreating(IDiagramObject obj)
26+
private void OnNodeCreating(IDiagramObject diagramObject)
2727
{
28-
if (obj is Swimlane swimlane)
28+
if (diagramObject is Swimlane swimlane)
2929
{
3030
swimlane.Header.Style = new TextStyle()
3131
{

Diagram/Server/Pages/Swimlanes/SwimlaneCreation/SwimlaneOrientation.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
@using Syncfusion.Blazor.Diagram
44

5-
<SfDiagramComponent Height="600px" Swimlanes="@SwimlaneCollections" NodeCreating="@OnNodeCreating" />
5+
<SfDiagramComponent Height="600px" Swimlanes="@_swimlaneCollections" NodeCreating="@OnNodeCreating" />
66

77
@code
88
{
99
//Define diagram's swimlane collection
10-
private DiagramObjectCollection<Swimlane> SwimlaneCollections = new DiagramObjectCollection<Swimlane>();
10+
private DiagramObjectCollection<Swimlane> _swimlaneCollections = new DiagramObjectCollection<Swimlane>();
1111

1212
protected override void OnInitialized()
1313
{
@@ -21,12 +21,12 @@
2121
Orientation = Orientation.Vertical,
2222
};
2323
// Add swimlane
24-
SwimlaneCollections.Add(swimlane);
24+
_swimlaneCollections.Add(swimlane);
2525
}
2626

27-
private void OnNodeCreating(IDiagramObject obj)
27+
private void OnNodeCreating(IDiagramObject diagramObject)
2828
{
29-
if (obj is Swimlane swimlane)
29+
if (diagramObject is Swimlane swimlane)
3030
{
3131
swimlane.Header.Style = new TextStyle()
3232
{

Diagram/Server/Pages/Swimlanes/SwimlaneHeader/SwimlaneHeaderCustomization.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
@using Syncfusion.Blazor.Diagram
44

5-
<SfDiagramComponent Height="600px" Swimlanes="@SwimlaneCollections" NodeCreating="@OnNodeCreating" />
5+
<SfDiagramComponent Height="600px" Swimlanes="@_swimlaneCollections" NodeCreating="@OnNodeCreating" />
66

77
@code
88
{
99
//Define diagram's swimlane collection
10-
private DiagramObjectCollection<Swimlane> SwimlaneCollections = new DiagramObjectCollection<Swimlane>();
10+
private DiagramObjectCollection<Swimlane> _swimlaneCollections = new DiagramObjectCollection<Swimlane>();
1111

1212
protected override void OnInitialized()
1313
{
@@ -33,12 +33,12 @@
3333
Width = 450,
3434
};
3535
// Add swimlane
36-
SwimlaneCollections.Add(swimlane);
36+
_swimlaneCollections.Add(swimlane);
3737
}
3838

39-
private void OnNodeCreating(IDiagramObject obj)
39+
private void OnNodeCreating(IDiagramObject diagramObject)
4040
{
41-
if (obj is Swimlane swimlane)
41+
if (diagramObject is Swimlane swimlane)
4242
{
4343
foreach (Phase phase in swimlane.Phases)
4444
{

Diagram/Server/Pages/Swimlanes/SwimlaneHeader/SwimlaneHeaderSample.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
@using Syncfusion.Blazor.Diagram
44

5-
<SfDiagramComponent Height="600px" Swimlanes="@SwimlaneCollections" NodeCreating="@OnNodeCreating" />
5+
<SfDiagramComponent Height="600px" Swimlanes="@_swimlaneCollections" NodeCreating="@OnNodeCreating" />
66

77
@code
88
{
99
//Define diagram's swimlane collection
10-
private DiagramObjectCollection<Swimlane> SwimlaneCollections = new DiagramObjectCollection<Swimlane>();
10+
private DiagramObjectCollection<Swimlane> _swimlaneCollections = new DiagramObjectCollection<Swimlane>();
1111

1212
protected override void OnInitialized()
1313
{
@@ -28,12 +28,12 @@
2828
Width = 450,
2929
};
3030
// Add swimlane
31-
SwimlaneCollections.Add(swimlane);
31+
_swimlaneCollections.Add(swimlane);
3232
}
3333

34-
private void OnNodeCreating(IDiagramObject obj)
34+
private void OnNodeCreating(IDiagramObject diagramObject)
3535
{
36-
if (obj is Swimlane swimlane)
36+
if (diagramObject is Swimlane swimlane)
3737
{
3838
swimlane.Header.Style = new TextStyle()
3939
{

Diagram/Server/Pages/Swimlanes/SwimlaneHeader/SwimlaneHeaderTemplate.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
@using Syncfusion.Blazor.Diagram
44

5-
<SfDiagramComponent Height="600px" Swimlanes="@SwimlaneCollections">
5+
<SfDiagramComponent Height="600px" Swimlanes="@_swimlaneCollections">
66
<DiagramTemplates>
77
<AnnotationTemplate>
88
@if (context is Annotation annotation)
@@ -28,7 +28,7 @@
2828
@code
2929
{
3030
//Define diagram's swimlane collection.
31-
private DiagramObjectCollection<Swimlane> SwimlaneCollections = new DiagramObjectCollection<Swimlane>();
31+
private DiagramObjectCollection<Swimlane> _swimlaneCollections = new DiagramObjectCollection<Swimlane>();
3232

3333
protected override void OnInitialized()
3434
{
@@ -58,12 +58,12 @@
5858
Width = 450,
5959
};
6060
// Add swimlane.
61-
SwimlaneCollections.Add(swimlane);
61+
_swimlaneCollections.Add(swimlane);
6262
}
6363

64-
private void OnNodeCreating(IDiagramObject obj)
64+
private void OnNodeCreating(IDiagramObject diagramObject)
6565
{
66-
if (obj is Swimlane swimlane)
66+
if (diagramObject is Swimlane swimlane)
6767
{
6868
swimlane.Header.Style = new TextStyle()
6969
{

Diagram/Server/Pages/Tooltip/StickyForConnector.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
@using Syncfusion.Blazor.Popups
44
@using Syncfusion.Blazor.Buttons
55

6-
<SfDiagramComponent @ref="@diagram" Width="1000px" Height="500px" Connectors="connectors" />
6+
<SfDiagramComponent @ref="@_diagram" Width="1000px" Height="500px" Connectors="@_connectors" />
77

88
@code
99
{
1010
//Define diagram's connectors collection
11-
private DiagramObjectCollection<Connector> connectors;
11+
private DiagramObjectCollection<Connector> _connectors;
1212
//Refrence the diagram
13-
private SfDiagramComponent diagram;
13+
private SfDiagramComponent _diagram;
1414

1515
protected override void OnInitialized()
1616
{
1717
//Intialize diagram's nodes collection
18-
connectors = new DiagramObjectCollection<Connector>();
18+
_connectors = new DiagramObjectCollection<Connector>();
1919
Connector connector = new Connector()
2020
{
2121
ID = "Connector1",
@@ -24,6 +24,6 @@
2424
Tooltip = new DiagramTooltip() { Content = "Tooltip", IsSticky=true },
2525
Constraints = ConnectorConstraints.Default | ConnectorConstraints.Tooltip,
2626
};
27-
connectors.Add(connector);
27+
_connectors.Add(connector);
2828
}
2929
}

Diagram/Server/Pages/Tooltip/StickyForNode.razor

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
@using Syncfusion.Blazor.Popups
44
@using Syncfusion.Blazor.Buttons
55

6-
<SfDiagramComponent @ref="@diagram" Width="1000px" Height="500px" Nodes="@nodes" />
6+
<SfDiagramComponent @ref="@_diagram" Width="1000px" Height="500px" Nodes="@_nodes" />
77

88
@code
99
{
1010
//Define diagram's nodes collection
11-
private DiagramObjectCollection<Node> nodes;
11+
private DiagramObjectCollection<Node> _nodes;
1212
//Reference the diagram
13-
private SfDiagramComponent diagram;
13+
private SfDiagramComponent _diagram;
1414

1515
protected override void OnInitialized()
1616
{
1717
//Intialize diagram's nodes collection
18-
nodes = new DiagramObjectCollection<Node>();
18+
_nodes = new DiagramObjectCollection<Node>();
1919
Node node = new Node()
2020
{
2121
ID = "node1",
@@ -31,6 +31,6 @@
3131
Tooltip = new DiagramTooltip() { Content = "Tooltip", IsSticky = true },
3232
Constraints = NodeConstraints.Default | NodeConstraints.Tooltip,
3333
};
34-
nodes.Add(node);
34+
_nodes.Add(node);
3535
}
3636
}

0 commit comments

Comments
 (0)