private void Signals_ConnectionResultReceived(OnboardingSignals sender, OnboardingConnectionResultReceivedEventArgs args) { if (args.Arg.Value1 == (short)ConnectionResultCode.Validated) { UpdateStatusAsync("Onboarding successful.", NotifyType.StatusMessage); } else { UpdateStatusAsync(string.Format("Connection attempt failed with result code: {0} and message: {1}.", ((ConnectionResultCode)args.Arg.Value1).ToString(), args.Arg.Value2), NotifyType.ErrorMessage); } }