public override void Dispose() { if (ParentGraph != null && ParentGraph is FunctionGraph) { FunctionGraph g = ParentGraph as FunctionGraph; if (!string.IsNullOrEmpty(inputName)) { g.RemoveVar(inputName); } } base.Dispose(); }