FormFlowsheetDeleteSelectedObject Method

Removes the specified graphic object and its corresponding simulation object from the flowsheet. Disconnects all attached connectors, updates Adjust/Spec/PID cross-references, and optionally prompts the user for confirmation.

Definition

Namespace: DWSIM
Assembly: DWSIM (in DWSIM.exe) Version: 10.0.9588.16093
public void DeleteSelectedObject(
	Object sender,
	EventArgs e,
	GraphicObject gobj,
	bool confirmation = true,
	bool triggercalc = false
)

Parameters

sender  Object
The event sender (can be Nothing).
e  EventArgs
Event arguments.
gobj  GraphicObject
The graphic object to delete.
confirmation  Boolean  (Optional)
When True (default), shows a confirmation dialog before deleting.
triggercalc  Boolean  (Optional)
Reserved; currently unused.

See Also