private void ChangeColorMethod(object obj) { if (dialogService.ColorDialog()) { manager.Execute(new Shapes.Commands.Pentagon.ChangeColor((Pentagon)selectedShape, dialogService.Color)); } }