Esempio n. 1
0
        private void btCanselApp_Click(object sender, EventArgs e)
        {
            int selectedAnimal = lvPatientApp.SelectedItems.Count;

            if (selectedAnimal != 0)
            {
                ListViewItem selectedItem = lvPatientApp.SelectedItems[0];
                Guid         selectedId   = Guid.Parse(selectedItem.SubItems[4].Text);
                using (var client = new HaServiceClient())
                {
                    client.DeleteAppointmentById(selectedId);
                }

                FillListView();
            }
        }