Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Animation;
- using System.Windows.Shapes;
- using Microsoft.Phone.Controls;
- using System.Diagnostics;
- namespace Initial_Wave
- {
- public partial class Register : PhoneApplicationPage
- {
- string fullname;
- string username;
- string password;
- string email;
- public Register()
- {
- InitializeComponent();
- }
- public string Fullname
- {
- get { return fullname; }
- set { fullname = value; }
- }
- public string Username
- {
- get { return username; }
- set { username = value; }
- }
- public string Password
- {
- get { return password; }
- set { password = value; }
- }
- public string EmailAdd
- {
- get { return email; }
- set { email = value; }
- }
- private void registerButton_Click2(object sender, RoutedEventArgs e)
- {
- if (fullnameBox.Text == "") { MessageBox.Show("Please enter your fullname"); }
- if (usernameBox.Text == "") { MessageBox.Show("Please enter your username"); }
- if (passwordBox.Password == "") { MessageBox.Show("Please enter your Password"); }
- if (emailBox.Text == "") { MessageBox.Show("Please enter your e-mail address"); }
- Fullname = fullnameBox.Text;
- Username = usernameBox.Text;
- Password = passwordBox.Password;
- EmailAdd = emailBox.Text;
- ServiceReference1.operationsSoapClient client = new ServiceReference1.operationsSoapClient();
- client.UserRegisterCompleted += new EventHandler<ServiceReference1.UserRegisterCompletedEventArgs>((s, a) =>
- {
- if (a.Error == null)
- {
- //this.IsAuthenticated = a.Result;
- Debug.WriteLine("Result = " + a.Result.ToString());
- }
- });
- client.UserRegisterAsync(Fullname, Username, Password, EmailAdd);
- Debug.WriteLine("Username: " + Username + " email: " + EmailAdd);
- }
- }
- }
Add Comment
Please, Sign In to add comment