ARCed.Database.Enemies.EnemyMainForm.InitializeAnimations C# (CSharp) Method

InitializeAnimations() private method

private InitializeAnimations ( ) : void
return void
        private void InitializeAnimations()
        {
            //#warning Fix this after loading of animations is fixed
            //return;
            this.comboBoxAttackerAnimation.BeginUpdate();
            this.comboBoxTargetAnimation.BeginUpdate();
            this.comboBoxAttackerAnimation.Items.Clear();
            this.comboBoxTargetAnimation.Items.Clear();
            this.comboBoxAttackerAnimation.Items.Add("<None>");
            this.comboBoxTargetAnimation.Items.Add("<None>");
            string name;
            foreach (Animation animation in Project.Data.Animations.Cast<Animation>().Where(animation => animation != null))
            {
                name = animation.ToString();
                this.comboBoxAttackerAnimation.Items.Add(name);
                this.comboBoxTargetAnimation.Items.Add(name);
            }
            this.comboBoxAttackerAnimation.EndUpdate();
            this.comboBoxTargetAnimation.EndUpdate();
        }