public void GoOffline() { if (availabiltyListener != null) { avalability = false; availabiltyListener.RemoveListener(); goOnlineButton.SetTitle("GO ONLINE", UIControlState.Normal); goOnlineButton.BackgroundColor = UIColor.FromRGB(0, 180, 255); } }
void TakeDriverOffline() { AvailabilityListener.RemoveListener(); AvailabilityListener = null; }
// method to take the driver offline private void TakeDriverOffline() { availabilityListener.RemoveListener(); availabilityListener = null; }