Ejemplo n.º 1
0
        private void OnReceiveCommandResult(object sender, ReceivedCommandResultsEventsArgs e)
        {
            var response = JObject.Parse(e.CommandResult);

            if (e.StatusCode == StatusCodes.BadRequest)
            {
                Dispatcher.Invoke(() =>
                {
                    ErrorField.Visibility = Visibility.Visible;
                    ErrorField.Content    = response["Message"].ToString();
                });
                return;
            }

            MessageBox.Show("Registration completed successfully", "Swype", MessageBoxButton.OK, MessageBoxImage.Information);

            SignUpResult = SignUpResults.Success;
            Close();
        }
Ejemplo n.º 2
0
 private void SignInBtn_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     SignUpResult = SignUpResults.LinkToSignIn;
     Close();
 }