Main Page | Class Hierarchy | Class List | File List | Class Members

ConsoleClient/Class1.cs

00001 using System;
00002 using System.Text;
00003 using Client;
00004 using Common;
00005 
00006 
00007 namespace ConsoleClient
00008 {
00012         class Class1
00013         {
00017                 [STAThread]
00018                 static void Main(string[] args)
00019                 {
00020                         ClientControl clientControl = null;
00021                         try {
00022                                 Console.WriteLine("GPRSWeb Console Client {0} (Build {1})\n\n", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(2), System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.Build);
00023                                 clientControl = new ClientControl();
00024                                 clientControl.Start();
00025                                 clientControl.Join(); // *** I'm not sure if this should be here...
00026                         } catch (ApplicationException appEx) {
00027                                 Console.Error.WriteLine("*** Application Error ***\n{0}", appEx);
00028                                 Console.WriteLine("+++ ATTEMPTING STOP +++");
00029                                 if (clientControl != null) { clientControl.Stop(); }
00030                         }
00031                         Console.Write("Press any key to close...");
00032                         Console.ReadLine();
00033                 }
00034 
00035                 
00036         }
00037 }

Generated on Mon May 8 22:07:27 2006 by  doxygen 1.3.9.1