private void CheckMovie_button_click(object sender, EventArgs e) { int lenowner = ownername.Text.Length; int lenhorario = horario.Text.Length; int lensalas = Salas.Text.Length; if (lenowner == 0 || lenowner == 0 || lenowner == 0) { MessageCreationMovie.Text = "Porfavor ingrese todos los parametros necesarios!!"; } else { Cine cine = new Cine(Int32.Parse(Salas.Text), ownername.Text, localController.IdAssign(), horario.Text, "CINE"); localController.AddLocal(cine); MessageCreationMovie.Text = "Pelicula creada con exito!"; ShowPanel(StartMenuPanel); } }