Example #1
0
        public SteSwitchCase AddCase(string caseItem, string caseCode)
        {
            CasesList.Add(
                new TccSwitchCaseItem()
            {
                CaseValue = new SteFixedCode(caseItem),
                CaseCode  = new SteFixedCode(caseCode)
            });

            return(this);
        }
Example #2
0
        public SteSwitchCase AddCase(ISyntaxTreeElement caseItem, ISyntaxTreeElement caseCode)
        {
            CasesList.Add(
                new TccSwitchCaseItem()
            {
                CaseValue = caseItem,
                CaseCode  = caseCode
            });

            return(this);
        }
Example #3
0
        public SteSwitchCase AddCase(string caseItem, ISyntaxTreeElement caseCode)
        {
            CasesList.Add(
                new TccSwitchCaseItem()
            {
                CaseValue = new SteFixedCode(caseItem),
                CaseCode  = caseCode
            });

            return(this);
        }
        private void SearchCase()
        {
            if (!string.IsNullOrEmpty(CaseName))
            {
                var searchResult = CasesList.FirstOrDefault(cl => cl.Name.ToLower().Contains(CaseName));

                if (searchResult != null)
                {
                    SelectedCase = searchResult;
                }
                else
                {
                    MessagesService.Show("Поиск дела", "Дело не найдено");
                }
            }
            else
            {
                MessagesService.Show("Поиск дела", "Строка поиска пуста");
            }
        }