public override void OnShapeExitTextEdit() { List <Shadow> list = new List <Shadow>(); // These are still only held together by name Page page = shape.ContainingPage; foreach (Shape s in page.Shapes) { if (shape.Text.Equals(s.Text)) { Shadow shadow = PathMaker.LookupShadowByShape(s); if (shadow.GetType() == this.GetType()) { list.Add(shadow); } } } if (list.Count > 1) { Common.ErrorMessage("Error - Incoming On Page Reference \"" + shape.Text + "\" already exists."); shape.Text = Strings.ToBeDeletedLabel; } }