Question
Solution Preview
This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.
namespace PhoneApp{
public partial class MainPage : PhoneApplicationPage
{
Service1Client client;
// Constructor
public MainPage()
{
InitializeComponent();
client = new Service1Client();
textUserName.Focus();
textUserName.Text = "";
passwordBox1.Password = "";
textBlock4.Text = string.Format(" You must sign in the system {0} For example {1} user : seid {2} password 111111", Environment.NewLine, Environment.NewLine, Environment.NewLine); ;
}
private void button1_Click(object sender, RoutedEventArgs e)
{
// NavigationService.Navigate(new Uri("/Page/ActionPage.xaml?uname=" + textUserName.Text, UriKind.Relative));
client.GetUserCompleted += new EventHandler<GetUserCompletedEventArgs>(client_GetUserCompleted);
client.GetUserAsync(textUserName.Text, passwordBox1.Password);
}
void client_GetUserCompleted(object sender, GetUserCompletedEventArgs e)
{
if (e.Error != null || e.Result == null)
{
canvas1.Visibility = System.Windows.Visibility.Visible;
}
else
{...