예제 #1
0
        public void ExportDatabase(GridView gridView, String file)
        {
            try
            {
                //implementar
                ConnectionDbf cdbf = new ConnectionDbf(file);

                var dt = cdbf.GetDataTable();

                var lista = DataGridViewUtil.ConvertToList <Produto>(dt);

                foreach (var item in lista)
                {
                    foreach (var c in COLUMNS)
                    {
                        //terminar
                    }
                    Console.WriteLine(item);
                }
            }
            catch (Exception ex)
            {
                XMessageIts.ExceptionMessage(ex);
            }

            //return Task.Run(()delegate);
        }