using System; using System.Collections.Generic; using System.Text; namespace Netron.Diagramming.Core { public class DeleteTool : AbstractTool { /// /// Constructor. /// /// public DeleteTool(string toolName) : base(toolName) { } protected override void OnActivateTool() { base.OnActivateTool(); DeleteCommand cmd; if (this.Controller.Model.Selection.SelectedItems.Count > 0) { // If any one entity in the selction can't be deleted, // remove it from the selection. for (int i = 0; i