Пример #1
0
        private void Window_Activated(object sender, EventArgs e)
        {
            var items = PatientBL.GetAll();

            if (!string.IsNullOrEmpty(txtSearch.Text))
            {
                items = items.FindAll(p => p.FIO.Contains(txtSearch.Text));
            }
            lvPatients.ItemsSource = items;
        }