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 ViewCases.xaml
|
|
|
|
|
/// </summary>
|
2018-06-10 19:34:30 +02:00
|
|
|
|
public partial class ViewStrains : Page
|
2018-06-03 17:24:48 +02:00
|
|
|
|
{
|
2018-06-17 17:08:06 +02:00
|
|
|
|
public ViewStrains()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
WpfWebClient.ServiceReferenceEHEC.ServiceClient client = new WpfWebClient.ServiceReferenceEHEC.ServiceClient();
|
|
|
|
|
|
2018-08-07 19:41:58 +02:00
|
|
|
|
// call method GetStrains and save them to strainlist
|
2018-06-17 17:08:06 +02:00
|
|
|
|
|
2018-07-28 13:47:47 +02:00
|
|
|
|
List<WpfWebClient.ServiceReferenceEHEC.Strain> strainlist = new List<ServiceReferenceEHEC.Strain>(client.GetStrains());
|
2018-06-17 17:08:06 +02:00
|
|
|
|
|
2018-07-28 13:47:47 +02:00
|
|
|
|
DataGridViewStrains.ItemsSource = strainlist;
|
2018-08-12 20:33:28 +02:00
|
|
|
|
|
2018-06-17 17:08:06 +02:00
|
|
|
|
|
2018-07-28 13:47:47 +02:00
|
|
|
|
client.Close();
|
2018-06-17 17:08:06 +02:00
|
|
|
|
}
|
|
|
|
|
|
2018-06-03 17:24:48 +02:00
|
|
|
|
}
|
|
|
|
|
}
|