public void OnServiceDisconnected(ComponentName name)
        {
            Log.Debug("CountServiceConnection", "OnServiceDisconnected");

            IsConnected = false;
            Binder      = null;
            mainActivity.UpdateUiForUnboundService();
        }
        public void OnServiceConnected(ComponentName name, IBinder service)
        {
            Binder      = service as CountBinder;
            IsConnected = this.Binder != null;

            Log.Debug("CountServiceConnection", "OnServiceConnected");

            if (IsConnected)
            {
                mainActivity.UpdateUiForBoundService();
            }
            else
            {
                mainActivity.UpdateUiForUnboundService();
            }
        }