private void syncFFM()
        {
            try
            {
                FTPClient ftp = new FTPClient(_RemoteHost, _RemoteLogin, _RemotePassword);
                ftp.Download("FFM.txt", AppDomain.CurrentDomain.BaseDirectory + "FFM.txt");
            }
            catch (IOException copyError)
            {
                eventLog1.WriteEntry(copyError.Message);
                return;
            }

            List<FFM> buginFFM = new List<FFM>();

            Broker b = new Broker();
            String CsOG = "";
            buginFFM = b.FillListBoxFFM(b.LoadOccupation("FFM"));
            foreach (var item in buginFFM)
            {
                //comboBox1.DataSource = b.Updater(item, item, 1);

                XNamespace am = "http://www.sita.aero/ams6-xml-api-messages";
                XNamespace ad = "http://www.sita.aero/ams6-xml-api-datatypes";
                XElement root = null;
                if (item.MessageIdentifier == "Departure")
                {
                    root = new XElement(am + "Envelope",
                        new XAttribute(XNamespace.Xmlns + "amsx-messages", "http://www.sita.aero/ams6-xml-api-messages"),
                        new XAttribute("apiVersion", "1.2"),
                        new XAttribute(XNamespace.Xmlns + "amsx-datatypes", "http://www.sita.aero/ams6-xml-api-datatypes"),
                        new XElement(am + "Content",
                            new XElement(am + "FlightUpdateRequest",
                                new XElement(am + "FlightId",
                                    new XElement(ad + "FlightKind", item.MessageIdentifier),
                                    new XElement(ad + "AirlineDesignator", item.FlightIdentifier.Substring(0, 2), new XAttribute("codeContext", "IATA")),
                                    new XElement(ad + "FlightNumber", item.FlightIdentifier.Substring(2, item.FlightIdentifier.Length - 2)),
                                    new XElement(ad + "ScheduledDate", b.LDMDayOfDepartureDate(item.DayOfOperation.ToString(), item.FlightIdentifier.Substring(2, item.FlightIdentifier.Length - 2)).ToString("yyyy-MM-dd")),
                                    new XElement(ad + "AirportCode", "TSE", new XAttribute("codeContext", "IATA"))
                                    ),
                                new XElement(am + "FlightUpdates",
                                    //new XElement(am + "Update", "2015-11-13T12:25:00", new XAttribute("propertyName", "ScheduledTime")),
                                    //new XElement(am + "Update", "FRU", new XAttribute("propertyName", "Route"), new XAttribute("codeContext", "IATA")),
                                    //new XElement(am + "Update", "", new XAttribute("propertyName", "Arr_Codeshares"), new XAttribute("codeContext", "IATA")),
                                    new XElement(am + "Update", item.Pieces, new XAttribute("propertyName", "sogp_cargo_count_departure")),
                                    new XElement(am + "Update", Math.Round(Convert.ToDouble(item.Weight)), new XAttribute("propertyName", "SOP Cargo Weight Departure"))
                                )
                            )
                        )
                    );
                }
                else if (item.MessageIdentifier == "Arrival")
                {
                    root = new XElement(am + "Envelope",
                        new XAttribute(XNamespace.Xmlns + "amsx-messages", "http://www.sita.aero/ams6-xml-api-messages"),
                        new XAttribute("apiVersion", "1.2"),
                        new XAttribute(XNamespace.Xmlns + "amsx-datatypes", "http://www.sita.aero/ams6-xml-api-datatypes"),
                        new XElement(am + "Content",
                            new XElement(am + "FlightUpdateRequest",
                                new XElement(am + "FlightId",
                                    new XElement(ad + "FlightKind", item.MessageIdentifier),
                                    new XElement(ad + "AirlineDesignator", item.FlightIdentifier.Substring(0, 2), new XAttribute("codeContext", "IATA")),
                                    new XElement(ad + "FlightNumber", item.FlightIdentifier.Substring(2, item.FlightIdentifier.Length - 2)),
                                    new XElement(ad + "ScheduledDate", b.LDMDiffDate(item.DayOfOperation.ToString(), item.FlightIdentifier.Substring(2, item.FlightIdentifier.Length - 2)).ToString("yyyy-MM-dd")),
                                    new XElement(ad + "AirportCode", "TSE", new XAttribute("codeContext", "IATA"))
                                    ),
                                new XElement(am + "FlightUpdates",
                                    new XElement(am + "Update", item.Pieces, new XAttribute("propertyName", "sogp_cargo_count_arrival")),
                                    new XElement(am + "Update", Math.Round(Convert.ToDouble(item.Weight)), new XAttribute("propertyName", "SOP Cargo Weight Arrival")),
                                    new XElement(am + "TableValueUpdate", new XAttribute("propertyName", "AA_AWB1"))
                                )
                            )
                        )
                    );

                    for (int i = 1; i < item.FieldArray + 1; i++)
                    {
                        XElement track = new XElement(ad + "Row", new XElement(ad + "Value", item.PiecesArr[i], new XAttribute("propertyName", "Oryn")),
                                            new XElement(ad + "Value", item.WeightArr[i], new XAttribute("propertyName", "Weight")),
                                            new XElement(ad + "Value", item.AirlineAWBIdentificationArr[i] + "-" + item.AwbSerialNumberArr[i], new XAttribute("propertyName", "AWB_Numbers")),
                                            new XElement(ad + "Value", item.VolumeCodeArr[i], new XAttribute("propertyName", "Measument_TYPE")),
                                            new XElement(ad + "Value", item.VolumeArr[i], new XAttribute("propertyName", "Mea_Values")),
                                            new XElement(ad + "Value", item.AwbOriginArr[i], new XAttribute("propertyName", "Origin_IATA")),
                                            new XElement(ad + "Value", item.AwbDestinationArr[i], new XAttribute("propertyName", "Destination_IATA")),
                                            new XElement(ad + "Value", item.ShipmentDescriptionCodeArr[i], new XAttribute("propertyName", "AWB Types")),
                                            new XElement(ad + "Value", item.GoodsArr[i], new XAttribute("propertyName", "Remarks"))
                                        );
                        root.Element(am + "Content").Element(am + "FlightUpdateRequest").Element(am + "FlightUpdates").Element(am + "TableValueUpdate").Add(track);
                    }
                }
                messageQueue1.Path = queuePath;

                System.Messaging.Message testMgs = new System.Messaging.Message();
                testMgs.Body = root;
                if (emulationMode == "Real") messageQueue1.Send(testMgs);
                CsOG = CsOG + " " + root.ToString();
            }
            b.WriteMyLOG("Update FFM Flight: " + CsOG);
            b.CloseReader();
            this.timerKezegi = "PTM";
        }