Beispiel #1
0
        public ViewUser()
        {
            InitializeComponent();
            ServiceHealthClient web = new ServiceHealthClient();
            var p = web.listPatient();

            foreach (Patient item in p)
            {
                ListViewItem ut = new ListViewItem(Convert.ToString(item.SNS), 0);
                ut.SubItems.Add(item.FirstName + " " + item.LastName);
                ut.SubItems.Add(Convert.ToString(item.Age));
                ut.SubItems.Add(Convert.ToString(item.Birthdate));
                ut.SubItems.Add(Convert.ToString(item.Activo));


                listView1.Items.Add(ut);
            }
        }