public frm_main_admin(string usuario) { InitializeComponent(); service = new UsuarioService(); uService = new UnidadService(); lbl_userOn.Text = "Usuario logueado: " + usuario; }
public frm_edit_unidad(Unidad origen) { service = new UnidadService(); support = Support.Support.GetSupport(); this.unit = origen; InitializeComponent(); }
public frm_main_unidades() { InitializeComponent(); support = Support.Support.GetSupport(); service = new UnidadService(); pic_unidad.BackColor = Color.Transparent; //pic_unidad.Image = (Image)Resources.NoImage; }
public frm_venta(double cotizacion) { InitializeComponent(); service = new UnidadService(); serviceVenta = new VentaService(); this.cotizacion = cotizacion; detalles = new List <int>(); }
public frm_main_service() { InitializeComponent(); uService = new UnidadService(); cService = new ClienteService(); pvService = new PostVentaService(); support = Support.Support.GetSupport(); }
public frm_detalle_pv(int seleccionada, int unidadSeleccionada) { InitializeComponent(); uService = new UnidadService(); pvService = new PostVentaService(); this.pvSeleccionado = pvService.getPostVentaMasDetalle(seleccionada, unidadSeleccionada); this.uSeleccionada = uService.getUnidadPorId(unidadSeleccionada); }
public frm_new_service(int unidad, int opcion) { uService = new UnidadService(); pvService = new PostVentaService(); newPostventa = new PostVenta(); job = new Trabajo(); unidadSeleccionada = uService.getUnidadParaService(unidad); this.opcion = opcion; InitializeComponent(); }
public frm_modelo(string logo, string titulo) { InitializeComponent(); this.logo = logo; service = new UnidadService(); pic_logo.BackColor = Color.Transparent; support = Support.Support.GetSupport(); Random random = new Random(); this.Text = titulo; int i = random.Next(1, 8); switch (titulo) { case "Audi": fabricante = 1; break; case "BMW": fabricante = 2; break; case "Ferrari": fabricante = 3; break; case "Lamborghini": fabricante = 4; break; case "Mercedes Benz": fabricante = 5; break; case "Porsche": fabricante = 6; break; } try { Image theImage = Image.FromFile(Path.Combine(Application.StartupPath, "Iconos /" + logo + ".ico")); Bitmap theBitmap = new Bitmap(theImage, new Size(48, 48)); IntPtr Hicon = theBitmap.GetHicon(); // Get an Hicon for myBitmap. Icon newIcon = Icon.FromHandle(Hicon); // Create a new icon from the handle this.Icon = newIcon; pic_logo.Image = Image.FromFile(Path.Combine(Application.StartupPath, "Imagenes/Logos/" + logo + ".png")); BackgroundImage = Image.FromFile(Path.Combine(Application.StartupPath, "Imagenes/Fondos/" + logo + " (" + i + ")" + ".jpg")); this.Text = logo.ToString(); } catch (System.IO.FileNotFoundException) { pic_rear.Image = (Image)Resources.Image; BackgroundImage = (Image)Resources.Image; } }