Skip to content

Commit 9541a3c

Browse files
committed
978718: LargeDiagram
1 parent 70d16ac commit 9541a3c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

KB-Samples/LargeDiagram/Components/Pages/DiagramFeatures.razor

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<!-- Diagram Section -->
2222
<div id="diagram-space" style="flex-grow: 1; width: 1200px;">
23-
<SfDiagramComponent Height="700px" @ref="@diagram" @bind-Nodes="@nodes" @bind-Connectors="@connectors" Created="Oncreate" EnableChunkMessages="true" GetCustomTool="GetCustomTool">
23+
<SfDiagramComponent Height="700px" @ref="@diagram" @bind-Nodes="@Nodes" @bind-Connectors="@Connectors" Created="OnCreate" EnableChunkMessages="true" GetCustomTool="GetCustomTool">
2424
</SfDiagramComponent>
2525
<span id='diagramName' style="display:none">DiagramComponent</span>
2626
</div>
@@ -116,8 +116,8 @@
116116
base.OnMouseUp(args);
117117
}
118118
}
119-
DiagramObjectCollection<Node> nodes = new DiagramObjectCollection<Node>();
120-
DiagramObjectCollection<Connector> connectors = new DiagramObjectCollection<Connector>();
119+
DiagramObjectCollection<Node> Nodes = new DiagramObjectCollection<Node>();
120+
DiagramObjectCollection<Connector> Connectors = new DiagramObjectCollection<Connector>();
121121
private string ExtensionType = ".json";
122122
//Method to save the diagram
123123
public async Task SaveDiagram()
@@ -158,7 +158,7 @@
158158
SymbolPalette.Targets.Add(diagram);
159159
}
160160

161-
private async void Oncreate()
161+
private async void OnCreate()
162162
{
163163
json = File.ReadAllText("wwwroot/PathShape.json");
164164
await diagram.LoadDiagramAsync(json);

0 commit comments

Comments
 (0)