void connection_Delete(object sender, EventArgs e) { ConnectionSilverlight connectionSilverlight = sender as ConnectionSilverlight; serviceDocument.RemoveConnection(connectionSilverlight.Connection); canvasDraw.Children.Remove(connectionSilverlight.Path); canvasDraw.Children.Remove(connectionSilverlight.MyMenuWidget); }