private void button1_Click(object sender, EventArgs e)
        {
            Categoria selectedCategory = new Categoria();


            //int categoria = comboBox1.SelectedIndex;
            if (comboBox1.SelectedIndex != -1 || textBox1.Text == "")
            {
                try
                {
                    selectedCategory = (Categoria)Enum.Parse(typeof(Categoria), comboBox1.Text);
                    Pelicula nuevaPelicula            = new Pelicula(textBox1.Text, selectedCategory);
                    var      mostratPantallaPrincipal = new PantallPrincipal(nuevaPelicula, comboBox1.SelectedIndex);
                    mostratPantallaPrincipal.Show();
                    this.Close();
                }
                catch (ArgumentException)
                {
                    Console.WriteLine("'{0}' is not a member of the Colors enumeration.", selectedCategory);
                }
            }
            else
            {
                MessageBox.Show("Asegurese de ingresar el titulo y la categoria de la pelicula.");
            }
        }
 private void button2_Click(object sender, EventArgs e)
 {
     //Boton iniciar sesion
     if (comboBox1.SelectedIndex != -1)
     {
         selectedUser = comboBox1.SelectedItem.ToString();
         var mostratPantallaPrincipal = new PantallPrincipal();
         mostratPantallaPrincipal.Show();
         this.Hide();
     }
     else
     {
         MessageBox.Show("No selecciono un usuario para ingresar.");
     }
 }