Example #1
0
 private void button2_Click(object sender, RoutedEventArgs e)
 {
     // SDBService1 proxy = new SDBService1();
     ServiceReference1.CoreServiceClient proxy = new ServiceReference1.CoreServiceClient();
      string s = proxy.ReturnHey("l");
     MessageBox.Show(s);
     try
     {
     }
     catch (Exception ex)
     {
         //MessageBox.Show(ex.Message);
     }
 }
 private void InitLogin()
 {
     ServiceReference1.CoreServiceClient proxy = new ServiceReference1.CoreServiceClient();
     ServiceReference1.User _user = new ServiceReference1.User();
     try
     {
         if (_user.Fullname == "failed")
         {
             MessageBox.Show("Login Failed");
         }
         else
         {
             _user = proxy.VerifyLogin("leon", "passwrd");
             MessageBox.Show("USER="******":"+_user.Fullname);
     }
 }
Example #3
0
 private void InitLogin()
 {
     ServiceReference1.CoreServiceClient proxy = new ServiceReference1.CoreServiceClient();
     ServiceReference1.User _user = new ServiceReference1.User();
     try
     {
         if (_user.Fullname == "failed")
         {
             MessageBox.Show("Login Failed");
         }
         else
         {
             _user = proxy.VerifyLogin("leon", "passwrd");
             MessageBox.Show("USER="******":"+_user.Fullname);
     }
 }