private void DeviceService_ButtonInput(object sender, DeviceActionEventArgs e) { if (e.Value == true) { DeviceAction?.Invoke(this, e); } }
private void DeviceService_DeviceAction(object sender, DeviceActionEventArgs e) { switch (e.Button) { case TelephonyDevice.ButtonId.CustomButton1: CustomAction0(); break; case TelephonyDevice.ButtonId.CustomButton2: CustomAction1(); break; case TelephonyDevice.ButtonId.CustomButton3: CustomAction2(); break; } }