ARCed.Database.Weapons.WeaponMainForm.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.comboBoxUserAnimation.BeginUpdate();
            this.comboBoxTargetAnimation.BeginUpdate();
            this.comboBoxUserAnimation.Items.Clear();
            this.comboBoxTargetAnimation.Items.Clear();
            this.comboBoxUserAnimation.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.comboBoxUserAnimation.Items.Add(name);
                this.comboBoxTargetAnimation.Items.Add(name);
            }
            this.comboBoxUserAnimation.EndUpdate();
            this.comboBoxTargetAnimation.EndUpdate();
        }