void CopyTheme(ChartTheme sourceTheme) { ChartTheme theme = new ChartTheme(sourceTheme); theme.SetIsInternal(false); if (sourceTheme.IsInternal) { theme.Name = string.Format("{0} {1}", Lang._("Copy of"), Lang._(sourceTheme.Name)); } else { theme.Name = string.Format("{0} {1}", Lang._("Copy of"), sourceTheme.Name); } AddNewTheme(theme); }