public override void Apply() { int index = 0; foreach ( var charCategory in CharCategories ) { Project.Characters[index].Category = charCategory; ++index; } Editor.RemoveCategory( CategoryIndex ); MarkParentAsModified(); }