public void RefreshData()
        {
            PathologyService service = new PathologyService();

            pathologies = new ObservableCollection <PathologyEntity>(service.GetAllPathologies());
            this.lvPathology.ItemsSource = pathologies;
        }
        private bool CheckDoppione()
        {
            string pathologyName = (this.DataContext as PathologyEntity).PathologyName.ToLower();

            PathologyService       service     = new PathologyService();
            List <PathologyEntity> pathologies = service.GetAllPathologies();

            if (pathologies.Any(x => x.PathologyName.ToLower().Equals(pathologyName)))
            {
                return(true);
            }

            return(false);
        }