Пример #1
0
        private async void btnLogin_Click(object sender, RoutedEventArgs e)
        {
            if (txtbxMail.Text != null && txtbxMail.Text != "")
            {
                myservice.Service1Client myservice = new myservice.Service1Client();
                int status = await myservice.GetuserbymailAsync(txtbxMail.Text);


                if (status > 0)
                {
                    App.Userid = status;
                    this.Frame.Navigate(typeof(Views.TaskPage));
                }
                else
                {
                    this.Frame.Navigate(typeof(Views.RegisterWithUs));
                }
            }
        }