示例#1
0
        private void findEmployByRoom_Click(object sender, RoutedEventArgs e)
        {
            SearchEngine searchEngine = new SearchEngine();
            string       str;
            bool         hasInput = searchEngine.TryGetName("Поиск сотрудника по номеру кабинета", out str);

            if (hasInput)
            {
                SimpleQueryResult = new SimpleQueryResult(Querys.employByRoom(str));
            }
            NavigationService.Navigate(SimpleQueryResult);


            //searchWindow._searchType = Search.searchType.employByRoom;
        }
示例#2
0
        private void findEmployByRoom_Click(object sender, RoutedEventArgs e)
        {
            SearchEngine searchEngine = new SearchEngine();
            string       str;
            bool         hasInput = searchEngine.TryGetName("Поиск сотрудника по номеру кабинета", out str);

            if (hasInput)
            {
                var Rooms = Querys.employByRoom(str);
                if (HasRows(Rooms))
                {
                    SimpleQueryResult = new SimpleQueryResult(Rooms);
                    NavigationService.Navigate(SimpleQueryResult);
                }
                else
                {
                    searchEngine.checkError("Поиск сотрудника по номеру кабинета");
                }
            }
        }