public void Select() { if (SelectedVehicle != null) { Selected?.Invoke(this, SelectedVehicle); } else { NotSelected?.Invoke(this, EventArgs.Empty); } }
public void Select() { if (SelectedCompany != null) { Selected?.Invoke(this, SelectedCompany); } else { NotSelected?.Invoke(this, EventArgs.Empty); } }
public void Select() { if (SelectedPassenger != null) { Selected?.Invoke(this, SelectedPassenger); } else { NotSelected?.Invoke(this, EventArgs.Empty); } }
public void Select() { if (SelectedEngineType != null) { Selected?.Invoke(this, EventArgs.Empty); } else { NotSelected?.Invoke(this, EventArgs.Empty); } }
public void Select() { if (!string.IsNullOrEmpty(SelectedReason?.Text)) { Selected?.Invoke(this, SelectedReason.Text); DefaultSelected?.Invoke(this, SelectedReason); } else { NotSelected?.Invoke(this, EventArgs.Empty); } }