oop_AM-6/WebClient/WpfWebClient/ViewDoctors.xaml.cs

41 lines
1.1 KiB
C#
Raw Normal View History

2018-06-03 17:24:48 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
2018-06-17 17:08:06 +02:00
using WpfWebClient.ServiceReferenceEHEC;
2018-06-03 17:24:48 +02:00
namespace WpfWebClient
{
/// <summary>
/// Interaction logic for ViewDoctors.xaml
/// </summary>
public partial class ViewDoctors : Page
{
public ViewDoctors()
2018-06-10 19:34:30 +02:00
2018-06-03 17:24:48 +02:00
{
InitializeComponent();
2018-06-10 19:34:30 +02:00
WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient();
// call method GetDoctors and save them to doctorlist
2018-06-17 17:08:06 +02:00
List<WpfWebClient.ServiceReferenceEHEC.Doctor> doctorlist = new List<ServiceReferenceEHEC.Doctor>(client.GetDoctors());
DataGridViewDoctors.ItemsSource = doctorlist;
2018-07-28 13:47:47 +02:00
client.Close();
2018-06-03 17:24:48 +02:00
}
}
}