private void button1_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedIndex == -1 || ((textBox1.Text.Equals("") && textBox2.Text.Equals("")))) return;

            HBackground tmpBackground = new HBackground("HBackground", new Vector2(Convert.ToInt32(textBox1.Text), Convert.ToInt32(textBox2.Text)),
                comboBox1.Items[comboBox1.SelectedIndex].ToString().Substring(0, comboBox1.Items[comboBox1.SelectedIndex].ToString().Length - 4), @"\Content\Background\" + comboBox1.Items[comboBox1.SelectedIndex].ToString());

            TextureManager.Instance.LoadParallaxSprite(tmpBackground.PathName, tmpBackground.TextureName);
            _parallaxManager.ParallaxList.Add(tmpBackground);

            listBox1.Items.Add(tmpBackground.TextureName);
        }
        private void button3_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedIndex == -1 || textBox3.Text.Equals("")) return;

            HBackground tmpParallax = new HBackground("HParallax", Vector2.Zero,
                comboBox1.Items[comboBox1.SelectedIndex].ToString().Substring(0, comboBox1.Items[comboBox1.SelectedIndex].ToString().Length - 4),
                 @"\Content\Background\" + comboBox1.Items[comboBox1.SelectedIndex].ToString(),
                 (float)Convert.ToDouble(textBox3.Text));
            TextureManager.Instance.LoadParallaxSprite(tmpParallax.PathName, tmpParallax.TextureName);
            _parallaxManager.ParallaxList.Add(tmpParallax);

            listBox1.Items.Add(tmpParallax);
        }
        private void button8_Click(object sender, EventArgs e)
        {
            if (comboBox1.SelectedIndex == -1 || textBox4.Text.Equals("")
                || textBox5.Text.Equals("")
                || textBox6.Text.Equals("")
                || textBox7.Text.Equals("")) return;

            HBackground tmpParallax = new HBackground(HEnum.BackgroundTyp.HCloud, 
                comboBox1.Items[comboBox1.SelectedIndex].ToString().Substring(0, comboBox1.Items[comboBox1.SelectedIndex].ToString().Length - 4),
                @"\Content\Background\" + comboBox1.Items[comboBox1.SelectedIndex].ToString(),
                new Vector2(0, GameSettings.LevelWidth),
                new Vector2(Convert.ToInt32(textBox4.Text), Convert.ToInt32(textBox6.Text)),
                Convert.ToInt32(textBox7.Text),
                (float)Convert.ToDouble(textBox5.Text));

            //tmpParallax.TextureName = comboBox1.Items[comboBox1.SelectedIndex].ToString().Substring(0, comboBox1.Items[comboBox1.SelectedIndex].ToString().Length - 4);
            //tmpParallax.PathName = @"\Content\Background\" + comboBox1.Items[comboBox1.SelectedIndex].ToString();
                
                //Vector2.Zero,
                //comboBox1.Items[comboBox1.SelectedIndex].ToString().Substring(0, comboBox1.Items[comboBox1.SelectedIndex].ToString().Length - 4),
                // @"\Content\Background\" + comboBox1.Items[comboBox1.SelectedIndex].ToString(),
                // (float)Convert.ToDouble(textBox3.Text));
            TextureManager.Instance.LoadParallaxSprite(tmpParallax.PathName, tmpParallax.TextureName);
            _parallaxManager.ParallaxList.Add(tmpParallax);

            listBox1.Items.Add(tmpParallax);
        }