public void findAnimations(Entity entity) { if (playingAnimationState != null) { playingAnimationState.Playing = false; playingAnimationState = null; } this.currentEntity = entity; listBox.removeAllItems(); AnimationStateSet animationStateSet = entity.getAllAnimationStates(); if (animationStateSet != null) { foreach (AnimationState state in animationStateSet.AnimationStates) { listBox.addItem(state.getAnimationName(), new AnimationWindowListItem(state)); } } }
void OpenPatientDialog_Hidden(object sender, EventArgs e) { fileDataGrid.removeAllItems(); searchBox.Caption = ""; }