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); }
private void OnActivePaletteTypeChanged(PaletteType type) { var oldType = _guiState.ActivePaletteType.Value; _editService.Edit($"Change Palette Type To {type.ToString()}", () => _guiState.ActivePaletteType.Value = type, () => _guiState.ActivePaletteType.Value = oldType, false); }
public void AddNewEntry() { var entryId = string.Empty; _editService.Edit($"Add {typeof(T).Name} Entry {entryId}", () => entryId = _palette.AddEntry().Id, () => _palette.RemoveEntry(entryId), markAsIdOrNameDirty: true); }