private void Controller_OnRelationshipRemoved(object sender, SchemaEventArgs <Connection> e) { Connection connection = e.Entity; connection.RemoveFromSurface(this); OnConnectionRemoved.RaiseEvent(this, new SchemaEventArgs <Connection>(connection)); }
public ControllerImpl() { Schema = new Schema(); Schema.OnConnectionAdded += (s, e) => OnConnectionAdded.RaiseEvent(this, e); Schema.OnConnectionRemoved += (s, e) => OnConnectionRemoved.RaiseEvent(this, e); Schema.OnShapeAdded += (s, e) => OnShapeAdded.RaiseEvent(this, e); Schema.OnShapeRemoved += (s, e) => OnShapeRemoved.RaiseEvent(this, e); Schema.OnSchemaCleared += (s, e) => OnSchemaCleared.RaiseEvent(this); }