private void SetNewVisualizer <T>() where T : DefaultVisualizer { _visualizer = _visualizer.Clone <T>(); var fillVisualizer = _visualizer as GradientFillVisualizer; if (fillVisualizer != null) { } ShowChanges(); }