Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Connectors="@connectors" />
<SfDiagramComponent Height="600px" Connectors="@_connectors" />

@code
{
// Create connector and store it in the connector collection.
private DiagramObjectCollection<Connector> connectors;
private DiagramObjectCollection<Connector> _connectors;

protected override void OnInitialized()
{
connectors = new DiagramObjectCollection<Connector>();
_connectors = new DiagramObjectCollection<Connector>();
Connector connector = new Connector()
{
// Unique Id of the connector.
Expand All @@ -26,6 +26,6 @@
Flow = BpmnFlowType.AssociationFlow,
}
};
connectors.Add(connector);
_connectors.Add(connector);
}
}
8 changes: 4 additions & 4 deletions Diagram/Server/Pages/BpmnEditor/BpmnConnectors/Message.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Connectors="@connectors" />
<SfDiagramComponent Height="600px" Connectors="@_connectors" />

@code
{
// Create connector and store it in the connector collection.
private DiagramObjectCollection<Connector> connectors;
private DiagramObjectCollection<Connector> _connectors;

protected override void OnInitialized()
{
connectors = new DiagramObjectCollection<Connector>();
_connectors = new DiagramObjectCollection<Connector>();
Connector connector = new Connector()
{
// Unique Id of the connector.
Expand All @@ -26,6 +26,6 @@
Flow = BpmnFlowType.MessageFlow,
}
};
connectors.Add(connector);
_connectors.Add(connector);
}
}
8 changes: 4 additions & 4 deletions Diagram/Server/Pages/BpmnEditor/BpmnConnectors/Sequence.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Connectors="@connectors" />
<SfDiagramComponent Height="600px" Connectors="@_connectors" />

@code
{
// Create connector and store it in the connector collection.
private DiagramObjectCollection<Connector> connectors;
private DiagramObjectCollection<Connector> _connectors;

protected override void OnInitialized()
{
connectors = new DiagramObjectCollection<Connector>();
_connectors = new DiagramObjectCollection<Connector>();
Connector connector = new Connector()
{
// Unique Id of the connector.
Expand All @@ -26,6 +26,6 @@
Flow = BpmnFlowType.SequenceFlow,
}
};
connectors.Add(connector);
_connectors.Add(connector);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Nodes="@nodes" />
<SfDiagramComponent Height="600px" Nodes="@_nodes" />

@code
{
// Initialize node collection with Node.
private DiagramObjectCollection<Node> nodes;
private DiagramObjectCollection<Node> _nodes;

protected override void OnInitialized()
{
nodes = new DiagramObjectCollection<Node>();
_nodes = new DiagramObjectCollection<Node>();
Node node1 = new Node()
{
ID = "node1",
Expand All @@ -22,7 +22,7 @@
Height = 70,
Shape = new BpmnActivity() { ActivityType = BpmnActivityType.Task }
};
nodes.Add(node1);
_nodes.Add(node1);
Node node2 = new Node()
{
ID = "node2",
Expand All @@ -36,6 +36,6 @@
Children = new DiagramObjectCollection<string>() { "node1" }
}
};
nodes.Add(node2);
_nodes.Add(node2);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Nodes="@nodes" />
<SfDiagramComponent Height="600px" Nodes="@_nodes" />

@code
{
// Initialize node collection with Node.
private DiagramObjectCollection<Node> nodes;
private DiagramObjectCollection<Node> _nodes;

protected override void OnInitialized()
{
nodes = new DiagramObjectCollection<Node>();
_nodes = new DiagramObjectCollection<Node>();
Node node = new Node()
{
// Position of the node.
Expand All @@ -26,6 +26,6 @@
// Sets the shape to activity.
Shape = new BpmnExpandedSubProcess()
};
nodes.Add(node);
_nodes.Add(node);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Nodes="@nodes" />
<SfDiagramComponent Height="600px" Nodes="@_nodes" />

@code
{
// Initialize the node collection with node.
private DiagramObjectCollection<Node> nodes;
private DiagramObjectCollection<Node> _nodes;

protected override void OnInitialized()
{
nodes = new DiagramObjectCollection<Node>();
_nodes = new DiagramObjectCollection<Node>();
Node node = new Node()
{
// Position of the node.
Expand All @@ -29,6 +29,6 @@
IsAdhoc = true,
}
};
nodes.Add(node);
_nodes.Add(node);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Nodes="@nodes" />
<SfDiagramComponent Height="600px" Nodes="@_nodes" />

@code
{
// Initialize the node collection with node.
private DiagramObjectCollection<Node> nodes;
private DiagramObjectCollection<Node> _nodes;

protected override void OnInitialized()
{
nodes = new DiagramObjectCollection<Node>();
_nodes = new DiagramObjectCollection<Node>();
Node node = new Node()
{
// Position of the node.
Expand All @@ -29,6 +29,6 @@
IsCompensation = true,
}
};
nodes.Add(node);
_nodes.Add(node);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Nodes="@nodes" />
<SfDiagramComponent Height="600px" Nodes="@_nodes" />

@code
{
// Initialize the node collection with node.
private DiagramObjectCollection<Node> nodes;
private DiagramObjectCollection<Node> _nodes;

protected override void OnInitialized()
{
nodes = new DiagramObjectCollection<Node>();
_nodes = new DiagramObjectCollection<Node>();
Node node = new Node()
{
// Position of the node.
Expand All @@ -29,6 +29,6 @@
Loop = BpmnLoopCharacteristic.Standard,
}
};
nodes.Add(node);
_nodes.Add(node);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Nodes="@nodes" />
<SfDiagramComponent Height="600px" Nodes="@_nodes" />

@code
{
// Initialize the node collection with node.
private DiagramObjectCollection<Node> nodes;
private DiagramObjectCollection<Node> _nodes;

protected override void OnInitialized()
{
nodes = new DiagramObjectCollection<Node>();
_nodes = new DiagramObjectCollection<Node>();
Node node = new Node()
{
// Position of the node.
Expand All @@ -29,6 +29,6 @@
SubProcessType = BpmnSubProcessType.Event
}
};
nodes.Add(node);
_nodes.Add(node);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Connectors="@connectors" />
<SfDiagramComponent Height="600px" Connectors="@_connectors" />

@code
{
// Create connector and store it in the connector collection.
private DiagramObjectCollection<Connector> connectors;
private DiagramObjectCollection<Connector> _connectors;

protected override void OnInitialized()
{
connectors = new DiagramObjectCollection<Connector>();
_connectors = new DiagramObjectCollection<Connector>();
Connector connector = new Connector()
{
// Unique Id of the connector.
Expand All @@ -26,6 +26,6 @@
Flow = BpmnFlowType.AssociationFlow,
}
};
connectors.Add(connector);
_connectors.Add(connector);
}
}
8 changes: 4 additions & 4 deletions Diagram/Wasm/Pages/BpmnEditor/BpmnConnectors/Message.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Connectors="@connectors" />
<SfDiagramComponent Height="600px" Connectors="@_connectors" />

@code
{
// Create connector and store it in the connector collection.
private DiagramObjectCollection<Connector> connectors;
private DiagramObjectCollection<Connector> _connectors;

protected override void OnInitialized()
{
connectors = new DiagramObjectCollection<Connector>();
_connectors = new DiagramObjectCollection<Connector>();
Connector connector = new Connector()
{
// Unique Id of the connector.
Expand All @@ -26,6 +26,6 @@
Flow = BpmnFlowType.MessageFlow,
}
};
connectors.Add(connector);
_connectors.Add(connector);
}
}
8 changes: 4 additions & 4 deletions Diagram/Wasm/Pages/BpmnEditor/BpmnConnectors/Sequence.razor
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Connectors="@connectors" />
<SfDiagramComponent Height="600px" Connectors="@_connectors" />

@code
{
// Create connector and store it in the connector collection.
private DiagramObjectCollection<Connector> connectors;
private DiagramObjectCollection<Connector> _connectors;

protected override void OnInitialized()
{
connectors = new DiagramObjectCollection<Connector>();
_connectors = new DiagramObjectCollection<Connector>();
Connector connector = new Connector()
{
// Unique Id of the connector.
Expand All @@ -26,6 +26,6 @@
Flow = BpmnFlowType.SequenceFlow,
}
};
connectors.Add(connector);
_connectors.Add(connector);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
@using Syncfusion.Blazor.Diagram

@* Initialize Diagram *@
<SfDiagramComponent Height="600px" Nodes="@nodes" />
<SfDiagramComponent Height="600px" Nodes="@_nodes" />

@code
{
// Initialize node collection with Node.
private DiagramObjectCollection<Node> nodes;
private DiagramObjectCollection<Node> _nodes;

protected override void OnInitialized()
{
nodes = new DiagramObjectCollection<Node>();
_nodes = new DiagramObjectCollection<Node>();
Node node1 = new Node()
{
ID = "node1",
Expand All @@ -22,7 +22,7 @@
Height = 70,
Shape = new BpmnActivity() { ActivityType = BpmnActivityType.Task }
};
nodes.Add(node1);
_nodes.Add(node1);
Node node2 = new Node()
{
ID = "node2",
Expand All @@ -36,6 +36,6 @@
Children = new DiagramObjectCollection<string>() { "node1" }
}
};
nodes.Add(node2);
_nodes.Add(node2);
}
}
Loading