Ejemplo n.º 1
0
 public void SetFileName(string FileName)
 {
     LoaderF = new Loader(main, FileName);
 }
Ejemplo n.º 2
0
 private void LoadServerList()
 {
     Loader DBldr = new Loader(f, "wservers.txt");
     ServerList = DBldr.TxtRead();
     char separator = '|';
     string[] str = new string[3];
     WServers = new string[ServerList.Count];
     DZones = new string[ServerList.Count];
     CExpressions = new string[ServerList.Count];
     int k=0;
     foreach (string s in ServerList)
     {
         str = s.Split(separator);
         DZones[k] = str[0];
         WServers[k] = str[1];
         CExpressions[k] = str[2];
         k++;
     }
 }
Ejemplo n.º 3
0
        public List<string> ReadFile(bool action)
        {
            if (action == true)
            {
                List<string> data;

                data = LoaderF.XlsRead();
                LoaderF = null;
                return data;
            }
            else
            {
                List<string> data;
                data = LoaderF.TxtRead();
                LoaderF = null;
                return data;
            }
        }