using Exferia_Aplicacion.General; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Exferia_Actualizacion_BD._3_Vistas { public partial class PE_Proceso_Actualizacion : P_Personalizada { #region Propiedades Publicas public int PE_Proceso_Actualizacion_Progreso { get { return progressBar_Descarga.Value; } set { try { if (g_int_Total>0) { progressBar_Descarga.Value = (value * 100) / g_int_Total; } else { progressBar_Descarga.Value = 0; } } catch (Exception) { } } } private int g_int_Total = 0; public int PE_Proceso_Total { get { return g_int_Total; } set { g_int_Total = value; } } public string PE_Proceso_Actualizacion_Titulo { get { return lbl_Fichero_Descargado.Text; } set { lbl_Fichero_Descargado.Text = value; } } public int PE_Proceso_Actualizacion_InformacionProgreso { set { lbl_Total_Descargado.Text = value + " de " + g_int_Total; } } #endregion public PE_Proceso_Actualizacion() { InitializeComponent(); } #region Mover pantalla con raton private Boolean g_bol_Seleccionada; private int g_int_X, g_int_Y; private void ProcesoDescarga_MouseDown(object sender, MouseEventArgs e) { g_bol_Seleccionada = true; g_int_X = e.X; g_int_Y = e.Y; } private void ProcesoDescarga_MouseMove(object sender, MouseEventArgs e) { if (g_bol_Seleccionada) { this.SetDesktopLocation(Cursor.Position.X - g_int_X, Cursor.Position.Y - g_int_Y); } } private void ProcesoDescarga_MouseUp(object sender, MouseEventArgs e) { g_bol_Seleccionada = false; } #endregion public void Cambiar_Imagen(Image _img_Imagen) { try { pct_Logo_ProcesoDescarga.Image = Imagenes.G_IMG_MONTANDOBASEDATOS; } catch (Exception) {} } } }