public override void ViewDidDisappear(bool animated) { if (is_bt_available) { BTPacketHandler.StopInquiry(); } base.ViewDidDisappear(animated); }
void aleart_Dismissed(object sender, UIButtonEventArgs e) { if (e.ButtonIndex == 0) { // canceled } else { // OK BTPacketHandler.StartInquiry(); is_bt_available = true; } }