public void UpdateControls() { string[] ani_list = MdxRender.PreviewManager.AnimationList; comboBoxEditAnimation.ResetText(); if (ani_list != null) { //comboBoxEditAnimation.Properties.Items.Add("Animations"); comboBoxEditAnimation.Properties.Items.AddRange(ani_list); comboBoxEditAnimation.SelectedIndex = 0; MdxRender.PreviewManager.AnimationIndex = 0; MdxRender.PreviewManager.Mode = PreviewMode.Animation; } }