private void btnGuardar_Click(object sender, EventArgs e) { if (ValidarForm()) { SVGParser.SizeInicio = new Size(pickImagen.Width, pickImagen.Height); svgDocument = SVGParser.GetSvgDocument(selectedPath); nupAncho.Value = (int)svgDocument.Width.Value; nupAlto.Value = (int)svgDocument.Height.Value; pickImagen.Image = SVGParser.GetBitmapFromSVG(selectedPath); } }
private void btnBuscar_Click(object sender, EventArgs e) { DialogResult selectResult = filePicker.ShowDialog(); if (selectResult == System.Windows.Forms.DialogResult.OK) { SVGParser.SizeInicio = new Size(pickImagen.Width, pickImagen.Height); selectedPath = filePicker.FileName; txtBuscar.Text = selectedPath; svgDocument = SVGParser.GetSvgDocument(selectedPath); nupAncho.Value = (int)svgDocument.Width.Value; nupAlto.Value = (int)svgDocument.Height.Value; pickImagen.Image = SVGParser.GetBitmapFromSVG(selectedPath); Guardar.FileName = filePicker.FileName; } }