Пример #1
0
        public static ClientHelper.Client[] GetClients()
        {
            int length = (int)Directory.GetFiles("Database\\").Length;

            ClientHelper.Client[] clientInformation = new ClientHelper.Client[length];
            for (int i = 0; i < length; i++)
            {
                clientInformation[i] = ClientHelper.GetClientInformation(i);
            }
            return(clientInformation);
        }
Пример #2
0
 public static ClientHelper.Client GetClientInformation(int index)
 {
     ClientHelper.Client client    = new ClientHelper.Client();
     string[]            strArrays = File.ReadAllLines(string.Concat("Database\\", index, ".txt"));
     client.Username    = strArrays[0].Replace("Username\t:", "");
     client.CPUKey      = strArrays[1].Replace("CPU Key\t\t:", "");
     client.Expiration  = strArrays[2].Replace("Expiration\t:", "");
     client.Tier        = strArrays[3].Replace("Tier\t\t:", "");
     client.PaymentInfo = strArrays[4].Replace("Payment Info\t:", "");
     client.LastIP      = strArrays[5].Replace("Last IP\t\t:", "");
     return(client);
 }