Esempio n. 1
0
 void _client_ReservationCompleted(object sender, ReponseEventArgs <ReservationResult> e)
 {
     if (e.Result.data != "N")
     {
         btnQuery_Click(this, e);
         currentTicket = _client.Tickets.Single((t) => { return(t.queryLeftNewDTO.station_train_code == currentTicket.queryLeftNewDTO.station_train_code); });
         Reservation(currentTicket.secretStr);
     }
 }
Esempio n. 2
0
 void _client_SubmitOrderCompleted(object sender, ReponseEventArgs <RequestOrderResult> e)
 {
     if (!e.Result.data.submitStatus)
     {
         this.Invoke((MethodInvoker)(() =>
         {
             _client.Reservation(currentTicket.queryLeftNewDTO.start_train_date, currentTicket.secretStr, currentTicket.queryLeftNewDTO.from_station_name, currentTicket.queryLeftNewDTO.end_station_name);
             btnSubmitOrder_Click(this, new EventArgs());
         }));
     }
 }
Esempio n. 3
0
        void _client_CreateOrderCompleted(object sender, ReponseEventArgs <WaitQueueResult> e)
        {
            if (e.Result != null && e.Result.data != null)
            {
                if (!string.IsNullOrWhiteSpace(e.Result.data.msg))
                {
                    SetStateText(e.Result.data.msg);
                }

                if (e.Result.data.errorcode == null)
                {
                    SetStateText("订票成功,请打开浏览器进行支付操作!");
                }
            }
        }