private void OnAddPassengerTrigger(PassengerEventArgs e) { if (AddPassengerTrigger != null) { AddPassengerTrigger(this, e); } }
private void OnPassengersSeletedCompleted(PassengerEventArgs e) { if (PassengersSeletedCompleted != null) { PassengersSeletedCompleted(this, e); } }
private void OnSavePassengers(PassengerEventArgs e) { if (SavePassengers != null) { SavePassengers(this, e); } }
private void OnLoadPassengersTrigger(PassengerEventArgs e) { if (LoadPassengersTrigger != null) { LoadPassengersTrigger(this, e); } }
void frmSelectPassenger_LoadPassengersTrigger(object sender, PassengerEventArgs e) { if (_client != null && _client.IsLogin) { _client.GetPassengers(); e.Passengers = _client.User.Passengers.ToArray(); } }
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()); }
void frmPassenger_AddPassengerTrigger(object sender, PassengerEventArgs e) { OnAddPassengerTrigger(e); }
void frmSelectPassenger_AddPassengerTrigger(object sender, PassengerEventArgs e) { }
void frmSelectPassenger_PassengersSeletedCompleted(object sender, PassengerEventArgs e) { ShowSelectPassengers(e.Passengers); TicketUtil.SaveSelectedPassengers(e.Passengers); }
void _client_LoadPassengerCompleted(object sender, PassengerEventArgs e) { SetStateText(string.Format("获取到{0}位常用联系人", e.Passengers.Length)); SetControlEnabled(this.llblSelectPassengers, true); }
void _client_OpertionPassengerCompleted(object sender, PassengerEventArgs e) { if (e.Passengers != null) { } }