public override void OnPageShown() { LoadingSpinner.Visibility = Visibility.Hidden; LeftMuteBtn.Visibility = Visibility.Hidden; RightMuteBtn.Visibility = Visibility.Hidden; LeftMuteBtn.SetMuted(false); RightMuteBtn.SetMuted(false); }
public override void OnPageShown() { LoadingSpinner.Visibility = Visibility.Hidden; LeftMuteBtn.Visibility = Visibility.Hidden; RightMuteBtn.Visibility = Visibility.Hidden; RefreshEarbudIcon(); LeftMuteBtn.SetMuted(false); RightMuteBtn.SetMuted(false); EarbudWarning(_lastWarningLeft, _lastWarningRight); }
private void InstanceOnFindMyGearStopped(object sender, EventArgs e) { ScannerBtn.Stop(); Dispatcher.Invoke(() => { LeftMuteBtn.Visibility = Visibility.Hidden; RightMuteBtn.Visibility = Visibility.Hidden; LeftMuteBtn.SetMuted(false); RightMuteBtn.SetMuted(false); }); }
private void ScannerBtnOnScanningStatusChanged(object sender, bool e) { if (e) { BluetoothService.Instance.SendAsync(SPPMessageBuilder.FindMyGear.Start()); LeftMuteBtn.Visibility = Visibility.Visible; RightMuteBtn.Visibility = Visibility.Visible; } else { BluetoothService.Instance.SendAsync(SPPMessageBuilder.FindMyGear.Stop()); LeftMuteBtn.Visibility = Visibility.Hidden; RightMuteBtn.Visibility = Visibility.Hidden; LeftMuteBtn.SetMuted(false); RightMuteBtn.SetMuted(false); } }
private void InstanceOnFindMyGearMuteUpdate(object sender, MuteUpdateParser e) { LeftMuteBtn.SetMuted(e.LeftMuted); RightMuteBtn.SetMuted(e.RightMuted); }