Exemplo n.º 1
0
        public static string[] GetFromRecent()
        {
            string[] retorno = new string[8]
            {
                "","","","","","","",""
            };
            List<DataTable> tables = new List<DataTable>()
            {
                ConfigMngr.DatatableModel("RecentFiles")
            };
            ConfigMngr config = new ConfigMngr("Data", "dat", tables);
            List<string> lst = new List<string>();
            config.TableToList(config.Configs[0], out lst);

            //lst.RemoveAt(0);
            lst.Reverse();
            for (int i = 0; i < retorno.Length && i < lst.Count; i++)
            {
                retorno[i] = lst[i];
            }
            return retorno;
        }