Пример #1
0
        private void IncomesSearching()
        {
            var x = IIncomes.Where(item => (item.Concept.ToUpperInvariant().Contains(Searching.ToUpperInvariant())) ||
                                   (item.TypeIncome.ToString().ToUpperInvariant().Contains(Searching.ToUpperInvariant())) ||
                                   (item.Month.ToUpperInvariant().Contains(Searching.ToUpperInvariant()))
                                   ).ToList();

            IIncomes.Clear();
            foreach (var item in x)
            {
                IIncomes.Add(item);
            }

            if (string.IsNullOrEmpty(Searching))
            {
                GetIncomes();
            }
        }