private void ApplyFormatToSelected() { Shape formatShape = shapeStorage.GetShape(shapeKey); if (formatShape == null) { MessageBox.Show(SyncLabText.ErrorShapeDeleted, SyncLabText.ErrorDialogTitle); parent.ClearInvalidFormats(); } this.StartNewUndoEntry(); parent.ApplyFormats(formats, formatShape); }