Exemple #1
0
        void ServiceClient_addDataCompleted(object sender, addDataCompletedEventArgs e)
        {
            ServiceClient.addDataCompleted -= ServiceClient_addDataCompleted;
            if (e.Error == null)
            {
                MessageBox.Show(e.Result);
                if (Type == "marketsInfo")
                {
                    //移除临时标注
                    bool f = this.markLayer.RemoveMark(tmp);

                    if (AddMarkControl == null)
                    {
                        AddMarkControl              = new addMarks();
                        AddMarkControl.markLayer1   = this.markLayer;
                        AddMarkControl.mapContainer = this.mapContainer;
                    }
                    tmp = AddMarkControl.AddMark(_marketsInfo);
                    this.markLayer.MapContainer.Refresh();
                }
            }
        }
        private void xianlu_Click(object sender, RoutedEventArgs e)
        {
            warnMarks.Add(mark.AddMark(CenterMarketInfo));
            busAnalyse            = new   trackplaycontrol(this.markLayer, this.graphicsLayer);
            busAnalyse.centerInfo = CenterMarketInfo;
            busAnalyse.marketInfo = markInfo;
            busAnalyse.Btn_Submit(CenterMarketInfo.MarketName, markInfo.MarketName);
            List <OrderSatement> SendInfo = new List <OrderSatement>();
            OrderSatement        tmpvalue;

            for (int i = 0; i < orders.Count; i++)
            {
                tmpvalue           = new OrderSatement();
                tmpvalue.MarketID  = orders[i].MarketID;
                tmpvalue.ReceTime  = DateTime.Now;
                tmpvalue.ReceNum   = orders[i].PreNum;
                tmpvalue.ProdectID = orders[i].ProdectID;
                SendInfo.Add(tmpvalue);
            }
            string dataValue = XMLSerialization.Serialize(SendInfo);

            serviceClient.UppDateOrderStatmentAsync(markInfo.MarketID, dataValue);
            serviceClient.UppDateOrderStatmentCompleted += new EventHandler <UppDateOrderStatmentCompletedEventArgs>(serviceClient_UppDateOrderStatmentCompleted);
        }