Пример #1
0
        void sc_FindUIDCompleted(object sender, FindUIDCompletedEventArgs e)
        {
            User webUser = new User();

            webUser        = e.Result;
            idBlock.Text   = webUser.UID.ToString();
            nameBlock.Text = webUser.Uname;
            ageBlock.Text  = webUser.Uage.ToString();
            sexBlock.Text  = webUser.Usex;
            dateBlock.Text = webUser.Udate;
        }
Пример #2
0
        void sc_FindUIDCompleted(object sender, FindUIDCompletedEventArgs e)
        {
            webUser = e.Result;
            if (webUser.Password == loginUser.Password)
            {
                App app = Application.Current as App;
                app.ID = loginUser.UID.ToString();
                NavigationService.Navigate(new Uri("/Page1.xaml", UriKind.Relative));
                // NavigationService.Navigate(new Uri("/Welcome.xaml", UriKind.Relative));
            }

            else
            {
                //NavigationService.Navigate(new Uri("/login.xaml", UriKind.Relative));
                waringBlock.Text = "ID or Pass have wrong!";
            }
            //return webUser;
        }