Example #1
0
 public void agregarArchivo(Archivo archivos)
 {
     POIEntities context = new POIEntities();
     try
     {
         context.Archivoes.Add(archivos);
         context.SaveChanges();
     }
     catch (Exception e)
     {
         //error
     }
 }
        public ActionResult SubirArchivo()
        {
            var db = new ApplicationDbContext();

            var contenido = this.Contenido;
            //Obtener extension jpeg
            var extension = "." + contenido.Substring(11, 4);
            //Saca lo que no sirve del string
            var convert = contenido.Split(',').Last();
            //Convierte a byte
            var b64ToByte = Convert.FromBase64String(convert);

            //Obtengo el path del web.config
            var path = ConfigurationManager.AppSettings["PathArchivos"];

            //Guarda en bd
            var imagen = new Archivo();

            imagen.Nombre        = "Test";
            imagen.IdFileManager = imagen.Id.ToString();
            imagen.Extension     = extension;

            //Genero Id
            var guid = imagen.IdFileManager;

            //Genero el path donde guardare el archivo y si no existe lo genero
            path += guid.Substring(0, 2) + @"\";
            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            path += guid.Substring(2, 1) + @"\";
            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            path += guid + extension;

            //Guardo en Disco
            System.IO.File.WriteAllBytes(path, b64ToByte);

            new Repositorio <Archivo>(db).Crear(imagen);

            //Link para obtener imagen
            var link = ConfigurationManager.AppSettings["Core"] + "/Archivo/ObtenerImagenPorId/" + guid;

            //Retorno link del archivo
            return(Json(new { link = link }, JsonRequestBehavior.AllowGet));
        }
Example #3
0
 public List <Archivo> listExisteArchivo(Archivo archivo, int tamanoNombre)
 {
     // Valida que el archivo exista y el estado de del archivo este validado | Validado = 2
     try
     {
         using (var db = new DISEntities())
         {
             return(db.Archivos.Where(a => a.NombreArchivo.Equals(archivo.NombreArchivo) && a.Vigente == true && a.EstadoArchivoId == 2).ToList());
         }
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Example #4
0
        // GET: Archivoes/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Archivo archivo = db.Archivo.Find(id);

            if (archivo == null)
            {
                return(HttpNotFound());
            }
            ViewBag.id_indicador = new SelectList(db.Indicador, "id_indicador", "nombre", archivo.id_indicador);
            return(View(archivo));
        }
Example #5
0
 public ActionResult Get(string id)
 {
     try
     {
         using (XTEC_DigitalContext db = new XTEC_DigitalContext())
         {
             Archivo archivo = db.Archivos.Find(id);
             return(Ok(archivo));
         }
     }
     catch
     {
         return(BadRequest("No se pudo obtener el elemento"));
     }
 }
Example #6
0
 public void Modifica_Atributo(CEntidad Ent, CAtributo ATRI, CAtributo ATRI_MOD)
 {
     foreach (CAtributo Atr in Ent.Lista_Atrb)
     {
         if (Atr.Nombre == ATRI_MOD.Nombre)
         {
             Atr.Nombre = ATRI.Nombre;
             Atr.Tipo   = ATRI.Tipo;
             Atr.Tamaño = ATRI.Tamaño;
             Atr.Indice = ATRI.Indice;
             Archivo.modifica_atri_sig(Atr.Direccion, Name, Atr);
             break;
         }
     }
 }
Example #7
0
 public void removeFile(Archivo a)
 {
     if (wrapPanel.Children.Contains(a))
     {
         wrapPanel.Children.Remove(a);
         if (hijos.Contains(a))
         {
             hijos.Remove(a);
         }
     }
     else
     {
         Console.WriteLine("No se ha podido borrar el archivo " + a._archivoClass.nombre);
     }
 }
        public JsonResult Imprimir_padron(int ID_EXPEDIENTE, int ID_MODALIDAD_SERVICIO)
        {
            int    tipo        = 0;
            string mensaje     = "";
            string urlArchivos = "~/Downloads/";

            Archivo.EliminarArchivos(urlArchivos);
            string resultado = new ReportesBLL().genera_PADRON(ID_EXPEDIENTE, Server.MapPath(urlArchivos), ID_MODALIDAD_SERVICIO);

            //if (tipo == 1)
            //{
            resultado = urlArchivos.Substring(2) + resultado.Substring(2);
            //}
            return(Json(new { modelo = resultado, tipo = tipo, mensaje = mensaje }));
        }
        public JsonResult Imprimir_TUC(int idexpediente, int tipoModalidad)
        {
            int    tipo        = 0;
            string mensaje     = "";
            string urlArchivos = "~/Downloads/";

            Archivo.EliminarArchivos(urlArchivos);
            string resultado = new ReportesBLL().getDatosTarjetaUnicaCirculacion(idexpediente, Server.MapPath(urlArchivos), tipoModalidad);

            //if (tipo == 1)
            //{
            resultado = urlArchivos.Substring(2) + resultado.Substring(2);
            //}
            return(Json(new { modelo = resultado, tipo = tipo, mensaje = mensaje }));
        }
Example #10
0
        public int AgregarArchivo(Archivo archivo)
        {
            IDbConnection _conn = DASoftColitas.Conexion();

            _conn.Open();
            SqlCommand _Comand = new SqlCommand("SP_MANT_ARCHIVO", _conn as SqlConnection);

            _Comand.CommandType = CommandType.StoredProcedure;
            _Comand.Parameters.Add(new SqlParameter("@NOMBRE", archivo.Nombre));
            _Comand.Parameters.Add(new SqlParameter("@ARCHIVO ", archivo.Imagen));
            int Resultado = _Comand.ExecuteNonQuery();

            _conn.Close();
            return(Resultado);
        }
Example #11
0
        public void Registrar(Archivo a)
        {
            IDbConnection cn = Conexion.Conexion.Conectar();

            cn.Open();

            DynamicParameters parametro = new DynamicParameters();

            parametro.Add("@Peso", a.Peso, DbType.String);
            parametro.Add("@PresionArterial", a.PresionArterial, DbType.String);
            parametro.Add("@Temperatura", a.Temperatura, DbType.String);
            parametro.Add("@IdPaciente", a.IdPaciente, DbType.String);

            cn.Close();
        }
Example #12
0
        protected void UploadFile(FileUpload archivo)
        {
            if (!Directory.Exists(BaseDirectory))
            {
                Directory.CreateDirectory(BaseDirectory);
            }
            if (File.Exists(FullBaseFilDirectory))
            {
                File.Delete(FullBaseFilDirectory);
            }
            //if (Directory.Exists(OutPutDirectory))
            //Directory.Delete(OutPutDirectory);

            Archivo.SaveAs(FullBaseFilDirectory);
        }
        public JsonResult Imprimir_Credencial_Taxi(int idexpediente, int tipoModalidad)
        {
            int    tipo        = 0;
            string mensaje     = "";
            string urlArchivos = "~/Downloads/";

            Archivo.EliminarArchivos(urlArchivos);
            string resultado = new ReportesBLL().genera_pdf_Credencial_taxi(idexpediente, Server.MapPath(urlArchivos), tipoModalidad, "", "", "");

            //if (tipo == 1)
            //{
            resultado = urlArchivos.Substring(2) + resultado.Substring(2);
            //}
            return(Json(new { modelo = resultado, tipo = tipo, mensaje = mensaje }));
        }
Example #14
0
        /// <summary>
        /// Metodo para subir el archivo a un directorio indicado
        /// </summary>
        /// <param name="_archivo"></param>
        /// <param name="_directorioBase"></param>
        /// <param name="_directorioDestino"></param>
        protected void uploadFileToServer(FileUpload _archivo, string _directorioBase, string _directorioDestino, string _nombreArchivo)
        {
            // ¿ Carpeta de destino existe ?
            if (!Directory.Exists(_directorioBase + _directorioDestino))
            {
                Directory.CreateDirectory(_directorioBase + _directorioDestino);
            }
            //¿ Existe el archivo ? si delete
            if (File.Exists(_directorioBase + _directorioDestino + _nombreArchivo))
            {
                File.Delete(_directorioBase + _directorioDestino + _nombreArchivo);
            }

            Archivo.SaveAs(_directorioBase + _directorioDestino + _nombreArchivo); //Guardamos el archivo
        }
Example #15
0
        private void btnGuardar_Click(object sender, EventArgs e)
        {
            btnNuevo.Enabled   = true;
            btnGuardar.Enabled = false;
            groupBox1.Enabled  = false;
            archivoBindingSource.EndEdit();
            Archivo A = new Archivo();

            A = (Archivo)archivoBindingSource.Current;
            CArchivos cArchivo = new CArchivos();

            cArchivo.Registrar(A);
            this.Close();
            MessageBox.Show("Se ha registrado con exito al nuevo usuario");
        }
        public JsonResult Imprimir_ReporteResolucion(int IDDOC)
        {
            int    tipo        = 0;
            string mensaje     = "";
            string urlArchivos = "~/Downloads/";

            Archivo.EliminarArchivos(urlArchivos);
            string resultado = new ReportesBLL().ReporteResolucion(IDDOC, Server.MapPath(urlArchivos));

            //if (tipo == 1)
            //{
            resultado = urlArchivos.Substring(2) + resultado.Substring(2);
            //}
            return(Json(new { modelo = resultado, tipo = tipo, mensaje = mensaje }));
        }
Example #17
0
        public void Actualizar(Archivo a)
        {
            IDbConnection cn = Conexion.Conexion.Conectar();

            cn.Open();

            DynamicParameters parametro = new DynamicParameters();

            parametro.Add("@Peso", a.Peso, DbType.String);
            parametro.Add("@PresionArterial", a.PresionArterial, DbType.String);
            parametro.Add("@Temperatura", a.Temperatura, DbType.String);
            parametro.Add("@IdPaciente", a.IdPaciente, DbType.String);
            cn.Execute("sp_update_Archivo", parametro, commandType: CommandType.StoredProcedure);
            cn.Close();
        }
Example #18
0
        private Archivo LlamadoAServidorFTP(Archivo archivo)
        {
            var request = new RecibeArchivoRequest()
            {
                Item             = archivo,
                UsuarioEjecucion = "",
                Operacion        = TipoOperacionArchivo.Insertar
            };
            var ftp         = Util.ServicioFTPSoftrade();
            var responseFTP = ftp.OperacionArchivo(request);

            return(responseFTP.Item);
            //SendFile(archivo.ArchivoBytes);
            //return null;
        }
Example #19
0
        public static Archivo Generar()
        {
            Archivo archivo = new Archivo()
            {
                Nombre           = "LOALIINH",
                OrigenDatos      = "mockLOALIINH",
                IsUnixSaltoLinea = true
            };

            archivo.Cabecera           = GenerarCabecera();
            archivo.Detalle            = GenerarDetalle();
            archivo.Detalle.SubDetalle = GenerarSubDetalle();

            return(archivo);
        }
Example #20
0
        public IActionResult UpdateArchivo(Archivo c)
        {
            try
            {
                var cm = new ItemManagement();

                cm.UpdateArchivo(c);

                return(Ok());
            }
            catch (Exception ex)
            {
                return(StatusCode(500, ex));
            }
        }
Example #21
0
 public int ActualizarArchivo(clsArchivo archivo)
 {
     using (var conn = new PortalNoticiasEntities())
     {
         Archivo archivoBd = new Archivo
         {
             IdArchivo = archivo.IdArchivo,
             IdNoticia = archivo.IdNoticia,
             Ruta      = archivo.Ruta,
             Tipo      = archivo.Tipo
         };
         conn.Archivo.AddOrUpdate(archivoBd);
         return(conn.SaveChanges());
     }
 }
Example #22
0
        public static Archivo ObtenerArchivo(Solicitud s, int numeroArchivo)
        {
            Archivo archivo = null;

            switch (numeroArchivo)
            {
            case 1:
                archivo = s.Archivo1;
                break;

            case 2:
                archivo = s.Archivo2;
                break;

            case 3:
                archivo = s.Archivo3;
                break;

            case 4:
                archivo = s.Archivo4;
                break;

            case 5:
                archivo = s.Archivo5;
                break;

            case 6:
                archivo = s.Archivo6;
                break;

            case 7:
                archivo = s.Archivo7;
                break;

            case 8:
                archivo = s.Archivo8;
                break;

            case 9:
                archivo = s.Archivo9;
                break;

            case 10:
                archivo = s.Archivo10;
                break;
            }
            return(archivo);
        }
        public ActionResult EliminarJugadores(HttpPostedFileBase file)
        {
            JugadorController.logWriter("Visito en ELIMINAR POR ARCHIVO", JugadorController.ruta, true);
            string  filePath = string.Empty;
            Archivo modelo   = new Archivo();

            if (file != null)
            {
                string ruta = Server.MapPath("~/Temp/");

                if (!Directory.Exists(ruta))
                {
                    Directory.CreateDirectory(ruta);
                }

                filePath = ruta + Path.GetFileName(file.FileName);
                string extension = Path.GetExtension(file.FileName);
                file.SaveAs(filePath);

                string csvData = System.IO.File.ReadAllText(filePath);

                foreach (string row in csvData.Split('\n'))
                {
                    if (!(row == "club,last_name,first_name,position,base_salary,guaranteed_compensation"))
                    {
                        if (!string.IsNullOrEmpty(row))
                        {
                            for (int i = 0; i < db.Jugadores.Count; i++)
                            {
                                if (db.Jugadores[i].Club == row.Split(',')[0] &&
                                    db.Jugadores[i].Apellido == row.Split(',')[1] &&
                                    db.Jugadores[i].Nombre == row.Split(',')[2] &&
                                    db.Jugadores[i].Posicion == row.Split(',')[3] &&
                                    db.Jugadores[i].SalarioBase == Convert.ToDouble(row.Split(',')[4]) &&
                                    db.Jugadores[i].CompensacionGarantizada == Convert.ToDouble(row.Split(',')[5]))
                                {
                                    db.Jugadores.RemoveAt(i);
                                    i--;
                                }
                            }
                        }
                    }
                }

                modelo.SubirArchivo(ruta, file);
            }
            return(View(db.Jugadores));
        }
Example #24
0
        public string CadenaConexión = ConfigurationManager.AppSettings["Cadena_Conexion"]; //@"Data Source = ARMANDORIVERA\SQLEXPRESS; Initial Catalog = Pruebas; user id = ar; password = AR1217out#";

        public IEnumerable <EvironmentQA.Models.Archivo> Prueba(Archivo archi)
        {
            List <Archivo> dt = new List <Archivo>();
            DataTable      ds = new DataTable();

            SqlConnection con = new SqlConnection(CadenaConexión);

            //Abrir conexión

            SqlCommand cmd = new SqlCommand();

            SqlDataAdapter dtRead = new SqlDataAdapter(cmd);

            con.Open();
            cmd.Connection  = con;
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "sp_MostrarArchivos";
            cmd.Parameters.Add("@Validar", SqlDbType.Int).Value      = archi.Validador;     //variable;
            cmd.Parameters.Add("@IdDoc", SqlDbType.Int).Value        = archi.IdArchivo;     //variable;
            cmd.Parameters.Add("@idCarpeta", SqlDbType.Int).Value    = archi.idCarpetaRuta; //variable;
            cmd.Parameters.Add("@Ambiente", SqlDbType.VarChar).Value = archi.Ambiente;      //variable;
            cmd.Parameters.Add("@Isr", SqlDbType.Int).Value          = archi.ISR;           //variable;

            //dtRead = cmd.ExecuteReader();
            //dt.Add(dtRead);
            dtRead.Fill(ds);

            foreach (DataRow ren in ds.Rows)
            {
                Archivo archivo = new Archivo();
                archivo.IdArchivo         = Convert.ToInt32(ren["idarchivo"]);
                archivo.NomArchivo        = Convert.ToString(ren["nomarchivo"]);
                archivo.RutaArchivo       = Convert.ToString(ren["carpeta"]);
                archivo.idCarpetaRuta     = Convert.ToInt32(ren["idCarpetaArchivo"]);
                archivo.ISR               = Convert.ToInt32(ren["isr"]);
                archivo.NomISR            = Convert.ToString(ren["nomisr"]);
                archivo.Ambiente          = Convert.ToString(ren["ambiente"]);
                archivo.FechaModificacion = Convert.ToDateTime(ren["fechamodificacion"]);
                archivo.RutaFileServer    = Convert.ToString(ren["rutafileserver"]);

                dt.Add(archivo);
            }
            //dtRead.Close();
            cmd.Dispose();
            con.Close();

            return(dt);
        }
        public object actualizar([FromBody] Archivo archivo, int id)
        {
            try
            {
                // my code
                string token = HttpHelpers.GetTokenFromHeader(HttpContext);
                if (token == "")
                {
                    return(Unauthorized());
                }

                Base helper = new Base(AppSettings, token, HttpContext.Connection.RemoteIpAddress.ToString());

                archivo.vigente        = true;
                archivo.eliminado      = false;
                archivo.modificado_en  = DateTime.Now;
                archivo.modificado_por = helper.UsuarioId;
                if (Config.habilitarHistoricos)
                {
                    Archivo archivoOld = con.Query <Archivo>("SELECT * FROM archivos WHERE id_registro = @id_registro and vigente = true", new { id_registro = archivo.id_registro }).FirstOrDefault();
                    con.Close();
                    archivoOld.vigente = false;
                    funcionUpdate(archivoOld);
                    archivo.id_archivo = funcionInsert(archivo);
                }
                else
                {
                    funcionUpdate(archivo);
                    helper.AddLog(Log.TipoOperaciones.Modificacion, typeof(ArchivosController), "actualizar", archivo);
                }

                return(new
                {
                    status = "success",
                    mensaje = "actualizado",
                    codigo = "200",
                    data = archivo
                });
            }
            catch (Exception ex)
            {
                return(new
                {
                    status = "error",
                    mensaje = ex.Message
                });
            }
        }
Example #26
0
        public ActionResult AddOrEdit(Archivo archivo)
        {
            if (archivo.IdArchivo == 0)
            {
                archivo.FechaSubida = DateTime.Today;
                bool flag = ArchivoBl.RegistrarArchivoBL(archivo);

                return(Json(new { success = true, message = "Saved Successfully" }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                archivo.FechaSubida = DateTime.Today;
                bool flag = this.ArchivoBl.ActualizarArchivoBL(archivo);
                return(Json(new { success = true, message = "Updated Successfully" }, JsonRequestBehavior.AllowGet));
            }
        }
        // GET: Archivos/Delete/5
        public ActionResult Delete(int?id, string Nombre)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            Archivo archivo = db.Archivos.Find(id);

            ViewBag.Nombre = Nombre;
            ViewBag.IdTema = archivo.IdTema;
            if (archivo == null)
            {
                return(HttpNotFound());
            }
            return(View(archivo));
        }
Example #28
0
        /**
         * Añade un archivo a la carpeta que se le pase por argumentos
         */
        private void addFileCarpeta(string fileName, Carpeta c)
        {
            try {
                string       ruta = _profile.nombre + "|F" + c.getClass().ruta.Split('|')[1].Substring(1) + "/" + System.IO.Path.GetFileName(fileName);
                ArchivoClass ac   = new ArchivoClass(System.IO.Path.GetFileNameWithoutExtension(fileName), fileName, ruta, c.getClass().img, c.getClass().id);
                Archivo      a    = new Archivo(ac, this, null);

                a.setCarpetaPadre(c);
                Conexion.saveFile(ac);
                c.addFile(a);
            } catch (MySqlException exc) {
                MessageBox.Show("No se ha podido conectar a la base de datos");
            } catch (SQLiteException exc2) {
                MessageBox.Show("No se ha podido conectar a la base de datos");
            }
        }
Example #29
0
        public Usuario RetrieveByEmail(string correo)
        {
            Usuario usuario = crudUsuario.RetrieveByCorreo <Usuario>(correo);

            if (usuario != null)
            {
                Archivo archivo = new Archivo()
                {
                    Id = usuario.Foto.Id
                };

                usuario.Foto = this.itemManagement.RetrieveItemArchivo(archivo);
            }

            return(usuario);
        }
Example #30
0
        public Usuario Login(string correo, string contrasena)
        {
            Usuario usuario = this.crudUsuario.Login(correo.Trim(), contrasena.Trim());

            if (usuario != null)
            {
                Archivo archivo = new Archivo()
                {
                    Id = usuario.Foto.Id
                };

                usuario.Foto = this.itemManagement.RetrieveItemArchivo(archivo);
            }

            return(usuario);
        }
        public static void MoverArch(string Config)
        {
            Directory.CreateDirectory(Config);
            string Directorios = Directory.GetCurrentDirectory();

            string[] ArreArchDirectory = Directory.GetFiles(Directorios);
            foreach (string Archivo in ArreArchDirectory)
            {
                if (Archivo.Contains(".mp3") || Archivo.Contains(".txt"))
                {
                    string[] Cambio   = Archivo.Split(@"\");
                    int      Longitud = Cambio.Length;
                    Directory.Move(Archivo, Config + @"\" + Cambio[Longitud - 1]);
                }
            }
        }
        protected string ListaUnidad(string root)
        {
            //OBTIENE EL NOMBRE DEL ARCHIVO LOCAL
            string clientMachineName;
            int largo_dir = 0;

            clientMachineName = GetIPAddress();
            if (clientMachineName == "::1") clientMachineName = "127.0.0.1";
            //Response.Write(clientMachineName);

            // Data structure to hold names of subfolders to be
            // examined for files.
            Stack<string> dirs = new Stack<string>(20);

            root = "\\\\" + clientMachineName + "\\" + root;

            if (!System.IO.Directory.Exists(root))
            {
                //throw new ArgumentException();
                return root;
            }

            dirs.Push(root);

            //CALCULA EL LARGO DEL DIRECTORIO
            largo_dir = root.Length;

            while (dirs.Count > 0)
            {
                string currentDir = dirs.Pop();
                string[] subDirs;
                try
                {
                    subDirs = System.IO.Directory.GetDirectories(currentDir);
                }
                // An UnauthorizedAccessException exception will be thrown if we do not have
                // discovery permission on a folder or file. It may or may not be acceptable
                // to ignore the exception and continue enumerating the remaining files and
                // folders. It is also possible (but unlikely) that a DirectoryNotFound exception
                // will be raised. This will happen if currentDir has been deleted by
                // another application or thread after our call to Directory.Exists. The
                // choice of which exceptions to catch depends entirely on the specific task
                // you are intending to perform and also on how much you know with certainty
                // about the systems on which this code will run.
                catch (UnauthorizedAccessException e)
                {
                    System.Diagnostics.Debug.WriteLine(e.Message);
                    continue;
                }
                catch (System.IO.DirectoryNotFoundException e)
                {
                    System.Diagnostics.Debug.WriteLine(e.Message);
                    continue;
                }

                string[] files = null;
                try
                {
                    files = System.IO.Directory.GetFiles(currentDir);
                }

                catch (UnauthorizedAccessException e)
                {

                    System.Diagnostics.Debug.WriteLine(e.Message);
                    continue;
                }

                catch (System.IO.DirectoryNotFoundException e)
                {
                    System.Diagnostics.Debug.WriteLine(e.Message);
                    continue;
                }
                // Perform the required action on each file here.
                // Modify this block to perform your required task.

                foreach (string file in files)
                {
                    try
                    {
                        // Perform whatever action is required in your scenario.
                        System.IO.FileInfo fi = new System.IO.FileInfo(file);
                        Archivo ArchivoUnico = new Archivo();
                        ArchivoUnico.directorio = fi.DirectoryName.Substring(largo_dir);
                        ArchivoUnico.nom_archivo = fi.Name;
                        ArchivoUnico.tamanio = fi.Length;
                        ArchivoUnico.extension = fi.Extension;
                        ArchivoUnico.fecha_creacion = fi.CreationTime;
                        Archivos.Add(ArchivoUnico);
                    }
                    catch (System.IO.FileNotFoundException e)
                    {
                        // If file was deleted by a separate application
                        //  or thread since the call to TraverseTree()
                        // then just continue.
                        System.Diagnostics.Debug.WriteLine(e.Message);
                        continue;
                    }
                }
                // Push the subdirectories onto the stack for traversal.
                // This could also be done before handing the files.
                foreach (string str in subDirs)
                    dirs.Push(str);
            }
            return "true";
        }
Example #33
0
            static void Main()
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                MessageBox.Show("Elige el archivo .csv que contiene la matriz", "Arbol minimo Prim v1", MessageBoxButtons.OK, MessageBoxIcon.Question);
                Archivo objarchivo = new Archivo();
                objarchivo.lectura();
                objarchivo.imprimir();
                Application.Run(new Form1());
                               

            }