private void InstanceOnExtendedStatusUpdate(object sender, ExtendedStatusUpdateParser e)
        {
            Dispatcher.Invoke(() =>
            {
                if (BluetoothService.Instance.ActiveModel == Model.Buds)
                {
                    EQToggle.SetChecked(e.EqualizerEnabled);
                    DolbyToggle.SetChecked(e.EqualizerMode < 5);

                    int preset = e.EqualizerMode;
                    if (preset >= 5)
                    {
                        preset -= 5;
                    }

                    UpdateSlider(preset);
                }
                else
                {
                    EQToggle.SetChecked(e.EqualizerMode != 0);
                    if (e.EqualizerMode == 0)
                    {
                        UpdateSlider(2);
                    }
                    else
                    {
                        UpdateSlider(e.EqualizerMode - 1);
                    }
                }
            });
        }
        private void InstanceOnOtherOption(object sender, TouchOption.Universal e)
        {
            int action;

            if (e == TouchOption.Universal.OtherL)
            {
                if (Settings.Default.LeftCustomAction == -1)
                {
                    return;
                }
                action = Settings.Default.LeftCustomAction;
            }
            else if (e == TouchOption.Universal.OtherR)
            {
                if (Settings.Default.RightCustomAction == -1)
                {
                    return;
                }
                action = Settings.Default.RightCustomAction;
            }
            else
            {
                return;
            }

            switch ((CustomAction.Actions)action)
            {
            case CustomAction.Actions.EnableEqualizer:
                Dispatcher.Invoke(() =>
                {
                    EQToggle.Toggle();
                    UpdateEqualizer();
                });
                break;

            case CustomAction.Actions.SwitchEqualizerPreset:
                Dispatcher.Invoke(() =>
                {
                    var newVal = PresetSlider.Value + 1;
                    if (newVal >= 5)
                    {
                        newVal = 0;
                    }

                    PresetSlider.Value = newVal;
                    EQToggle.SetChecked(true);
                    UpdateEqualizer();
                });
                break;
            }
        }