Exemple #1
0
 private void OnAddPassengerTrigger(PassengerEventArgs e)
 {
     if (AddPassengerTrigger != null)
     {
         AddPassengerTrigger(this, e);
     }
 }
Exemple #2
0
 private void OnPassengersSeletedCompleted(PassengerEventArgs e)
 {
     if (PassengersSeletedCompleted != null)
     {
         PassengersSeletedCompleted(this, e);
     }
 }
Exemple #3
0
 private void OnSavePassengers(PassengerEventArgs e)
 {
     if (SavePassengers != null)
     {
         SavePassengers(this, e);
     }
 }
Exemple #4
0
 private void OnLoadPassengersTrigger(PassengerEventArgs e)
 {
     if (LoadPassengersTrigger != null)
     {
         LoadPassengersTrigger(this, e);
     }
 }
Exemple #5
0
 void frmSelectPassenger_LoadPassengersTrigger(object sender, PassengerEventArgs e)
 {
     if (_client != null && _client.IsLogin)
     {
         _client.GetPassengers();
         e.Passengers = _client.User.Passengers.ToArray();
     }
 }
Exemple #6
0
        void btnLoadPassengers_Click(object sender, EventArgs e)
        {
            this.dgvPassenger.Rows.Clear();
            var passengerEventArgs = new PassengerEventArgs(OperCommand.Get, null);

            OnLoadPassengersTrigger(passengerEventArgs);
            //刷新常用联系完成,重新绑定信息
            this._passengers = passengerEventArgs.Passengers;
            ShowPassengers(this.txtQueryPassenger.Text.Trim());
        }
Exemple #7
0
 void frmPassenger_AddPassengerTrigger(object sender, PassengerEventArgs e)
 {
     OnAddPassengerTrigger(e);
 }
Exemple #8
0
 void frmSelectPassenger_AddPassengerTrigger(object sender, PassengerEventArgs e)
 {
 }
Exemple #9
0
 void frmSelectPassenger_PassengersSeletedCompleted(object sender, PassengerEventArgs e)
 {
     ShowSelectPassengers(e.Passengers);
     TicketUtil.SaveSelectedPassengers(e.Passengers);
 }
Exemple #10
0
 void _client_LoadPassengerCompleted(object sender, PassengerEventArgs e)
 {
     SetStateText(string.Format("获取到{0}位常用联系人", e.Passengers.Length));
     SetControlEnabled(this.llblSelectPassengers, true);
 }
Exemple #11
0
 void _client_OpertionPassengerCompleted(object sender, PassengerEventArgs e)
 {
     if (e.Passengers != null)
     {
     }
 }