private void DisableButton_Click(object sender, RoutedEventArgs e) { try { bool?blnEnabled = ClientFunctions.EnableOrDisable(selectedContact.ID); if (blnEnabled != null) { refreshContactGrid(); } } catch (Exception generalException) { MessageFunctions.Error("Error changing status", generalException); } }