public AfazerServiceConnection(HorarioAfazerBinder binder) { if (binder != null) { this.binder = binder; } }
public void OnServiceConnected(ComponentName name, IBinder service) { var serviceBinder = service as HorarioAfazerBinder; if (serviceBinder != null) { binder = serviceBinder; binder.IsBound = true; Log.Debug("Service Connection", "OnServiceConnected Called"); ServiceConnected(this, new ServiceConnectedEventArgs { Binder = service }); serviceBinder.Service.VerificaHorarios(); } }