/// <summary> /// Actualiza la imagen por aerolínea /// </summary> private void UpdateImgAirline() { int rowsAfected = 0; rowsAfected = UpdateImagesBL.UpdateImgAirlineCode(content, txtAirline.Text); content = null; if (rowsAfected > 0) { MessageBox.Show("SE ACTUALIZARON " + rowsAfected + " REGISTROS", Resources.Constants.MYCTS, MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("NO SE ACTUALIZO NINGÚN REGISTRO", Resources.Constants.MYCTS, MessageBoxButtons.OK, MessageBoxIcon.Information); } Loader.AddToPanel(Loader.Zone.Middle, this, Resources.Constants.UCWELCOME); }
/// <summary> /// Inserta Imagen o archivo a BannerImage /// </summary> private void InsertBannerImage() { int rowsAfected = 0; rowsAfected = UpdateImagesBL.InsertBannerImage(content, path.Substring(path.LastIndexOf("\\") + 1, path.Length - path.LastIndexOf("\\") - 1), path.Substring(path.LastIndexOf("."), path.Length - path.LastIndexOf(".")), txtURL.Text, txtAirline.Text); content = null; if (rowsAfected > 0) { MessageBox.Show("SE ACTUALIZARON " + rowsAfected + " REGISTROS", Resources.Constants.MYCTS, MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("NO SE ACTUALIZO NINGÚN REGISTRO", Resources.Constants.MYCTS, MessageBoxButtons.OK, MessageBoxIcon.Information); } Loader.AddToPanel(Loader.Zone.Middle, this, Resources.Constants.UCWELCOME); }