예제 #1
0
 private void Button_Click_1(object sender, RoutedEventArgs e)
 {
     ServiceReference1.ServiceClient obj = new ServiceReference1.ServiceClient();
     lblResult.Content = obj.Addition(Convert.ToInt32(txtNo1.Text), Convert.ToInt32(txtNo2.Text));
 }
예제 #2
0
 private void BtnShowDatabase_Click(object sender, RoutedEventArgs e)
 {
     ServiceReference1.ServiceClient obj = new ServiceReference1.ServiceClient();
     ds = obj.GetDS();
     datagrid.ItemsSource = ds.Tables["studs"].DefaultView;
 }
예제 #3
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     ServiceReference1.ServiceClient obj = new ServiceReference1.ServiceClient();
     lblpractice.Content = obj.GetData(50);
 }