public void AddNewTheme() { var themeId = string.Empty; var themeIndex = _palette.Themes.Count; _editService.Edit($"Add {typeof(T).Name} Theme {themeIndex}", () => themeId = _palette.AddTheme().Id, () => _palette.RemoveTheme(themeId), markAsIdOrNameDirty: true); }