Esempio n. 1
0
        public diseases SearchForDisease(List <int> d)
        {
            diseases retvalue = new diseases();

            foreach (var item in this)
            {
                foreach (var item2 in d)
                {
                    if (item.Num == item2)
                    {
                        retvalue.Add(item);
                    }
                }
            }
            return(retvalue);
        }
Esempio n. 2
0
        public diseases Rest(List <int> d)
        {
            diseases retvalue = new diseases();
            bool     flag;

            foreach (var item in this)
            {
                flag = true;
                foreach (var item2 in d)
                {
                    if (item.Num == item2)
                    {
                        flag = false;
                        break;
                    }
                }
                if (flag)
                {
                    retvalue.Add(item);
                }
            }
            return(retvalue);
        }