Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            try
            {
                SerialDump o = new SerialDump(args);

                o.Run();
            }
            catch (ApplicationException)
            {
            }
            catch (Exception e)
            {
                Console.WriteLine("{0}", e.ToString());
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            try
            {
                if (String.Compare(args[0], "-?", true) == 0 || String.Compare(args[0], "/?", true) == 0)
                {
                    Console.WriteLine("Usage: SerialDump.exe [-dump <dump_file>] [-timestamp] [-usb] [port] [baudrate]");
                    return;
                }

                using (SerialDump o = new SerialDump(args))
                {
                    o.Run();
                }
            }
            catch (ApplicationException)
            {
            }
            catch (Exception e)
            {
                Console.WriteLine("{0}", e.ToString());
            }
        }
Ejemplo n.º 3
0
        static void Main( string[] args )
        {
            try
            {
                SerialDump o = new SerialDump( args );

                o.Run();
            }
            catch(ApplicationException)
            {
            }
            catch(Exception e)
            {
                Console.WriteLine( "{0}", e.ToString() );
            }
        }
Ejemplo n.º 4
0
        static void Main( string[] args )
        {
            try
            {
                if (String.Compare(args[0], "-?", true) == 0 || String.Compare(args[0], "/?", true) == 0)
                {
                    Console.WriteLine("Usage: SerialDump.exe [-dump <dump_file>] [-timestamp] [-usb] [port] [baudrate]");
                    return;
                }

                using (SerialDump o = new SerialDump(args))
                {
                    o.Run();
                }
            }
            catch (ApplicationException)
            {
            }
            catch (Exception e)
            {
                Console.WriteLine("{0}", e.ToString());
            }
        }