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)); }
private void BtnShowDatabase_Click(object sender, RoutedEventArgs e) { ServiceReference1.ServiceClient obj = new ServiceReference1.ServiceClient(); ds = obj.GetDS(); datagrid.ItemsSource = ds.Tables["studs"].DefaultView; }
private void Button_Click(object sender, RoutedEventArgs e) { ServiceReference1.ServiceClient obj = new ServiceReference1.ServiceClient(); lblpractice.Content = obj.GetData(50); }