private void SetSessionAction()
        {
            RS485PacketManager manager;
            if (session != null)
            {
                // Send request to remove new session.
                manager = new RS485PacketManager(
                    new InputData(RS485Packet.PriorityEnum.High, VooProtocol.CreateEndSessionCommand(session), session.Source, session.Destination, session.Source),
                    32);
                lock (RS485Events.synchronized)
                {

                    Managers.Add(manager);
                }
            }
            Console.Write("Destination = ");
            String destination = Console.ReadLine().Trim();
            // Console.Write("Entry application = ");
            // application = Console.ReadLine().Trim();
            application = @"C:\";
            session = new Session(source, destination);
            // Send request to begin new session.
            manager = new RS485PacketManager(
                   new InputData(RS485Packet.PriorityEnum.High, VooProtocol.CreateBeginSessionCommand(session), session.Source, session.Destination, session.Source),
                   32);
            RS485Packet packet = new RS485Packet(session.Source, session.Source, session.Destination, RS485Packet.PriorityEnum.High,
                                        RS485Packet.CommandEnum.Data, VooProtocol.CreateCApplicationCommand(application));
            manager.Packets.Add(packet);
               //     lock (RS485Events.synchronized)
            {
                Managers.Add(manager);
            }
        }
 public static String CreateEndSessionCommand(Session session)
 {
     return CreateEndSessionCommand(session.Source, session.Destination);
 }