Пример #1
0
        private void FillListMethods()
        {
            ListMethods.Clear();
            List <Models.Method> methods = new EF.Context <Models.Method>().GetListMethods(ParametersSearch);

            if (methods != null)
            {
                foreach (Models.Method item in methods)
                {
                    ListMethods.Add(item);
                }
            }
        }
Пример #2
0
        private string RemoveStartText(string text)
        {
            List <Models.RemovingText> removingTexts = new EF.Context <Models.RemovingText>().GetList();

            List <Models.RemovingText> removingTextsStart = removingTexts.FindAll(f => f.Type == TypesRemovingText.Start);

            foreach (Models.RemovingText item in removingTextsStart)
            {
                text = text.RemoveStartText(item.Text + " ");
            }
            text.TrimStart();
            return(text);
        }