Пример #1
0
        //private LEWrapper le;
        static void Main(string[] args)
        {
/*            string userInput;
 *          do
 *          {
 *              Console.Write("Enter EmpireName:");
 *              userInput = Console.ReadLine();
 *              if (string.IsNullOrEmpty(userInput))
 *              { Console.WriteLine("Thanks"); }
 *              else
 *              {
 *                  Console.WriteLine("Input [" + userInput + "]");
 *                  // other code to process user input
 *              }
 *          } while (!string.IsNullOrEmpty(userInput));
 *
 *          Console.ReadKey();
 */
            string UserName = "******";
            string Password = "******";
            string Server   = "us1";

            LEWrapper       le = new LEWrapper("Jazz", "M", "us1");
            PrintPlanetList p  = new PrintPlanetList();

            p.Subscribe(le);
            le.EmpireLogin();
            //Dictionary<string, string> planetList = p.SortPlanetList();
            Dictionary <string, string> planetList = p.planetList;

            foreach (KeyValuePair <string, string> pair in planetList)
            {
                le.BodyGetBuildings(pair.Key.ToString());
            }
            //planetList =
            //le.CloseLog();
            Console.ReadKey();
            //le.CloseLog();
        }
Пример #2
0
        //private LEWrapper le;
        static void Main(string[] args)
        {
            /*            string userInput;
            do
            {
                Console.Write("Enter EmpireName:");
                userInput = Console.ReadLine();
                if (string.IsNullOrEmpty(userInput))
                { Console.WriteLine("Thanks"); }
                else
                {
                    Console.WriteLine("Input [" + userInput + "]");
                    // other code to process user input
                }
            } while (!string.IsNullOrEmpty(userInput));

            Console.ReadKey();
             */
            string UserName = "******";
            string Password = "******";
            string Server = "us1";

            LEWrapper le = new LEWrapper("Jazz","M","us1");
            PrintPlanetList p = new PrintPlanetList();
            p.Subscribe(le);
            le.EmpireLogin();
            //Dictionary<string, string> planetList = p.SortPlanetList();
            Dictionary<string, string> planetList = p.planetList;
            foreach (KeyValuePair<string, string> pair in planetList)
                le.BodyGetBuildings(pair.Key.ToString());
            //planetList =
            //le.CloseLog();
            Console.ReadKey();
            //le.CloseLog();
        }