Example #1
0
 private void allTech_Click(object sender, RoutedEventArgs e)
 {
     //SimpleQueryResult = new SimpleQueryResult();
     SimpleQueryResult = new SimpleQueryResult(Querys.readTech());
     NavigationService.Navigate(SimpleQueryResult);
     MainWin.Title = "Вся техника";
 }
Example #2
0
 private void allCharac_Click(object sender, RoutedEventArgs e)
 {
     //SimpleQueryResult = new SimpleQueryResult();
     SimpleQueryResult = new SimpleQueryResult(Querys.readSysCharacter());
     NavigationService.Navigate(SimpleQueryResult);
     MainWin.Title = "Вся характиристики";
 }
Example #3
0
 private void allHDD_Click(object sender, RoutedEventArgs e)
 {
     //SimpleQueryResult = new SimpleQueryResult();
     SimpleQueryResult = new SimpleQueryResult(Querys.readHDD());
     NavigationService.Navigate(SimpleQueryResult);
     MainWin.Title = "Все жёсткие диски";
 }
Example #4
0
 private void allEmploy_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var employers = Querys.readEmployers();
         mainWindow.successfulConnection();
         SimpleQueryResult = new SimpleQueryResult(employers);
         NavigationService.Navigate(SimpleQueryResult);
         MainWin.Title = "Все сотрудники";
     }
     catch (Exception ex)
     {
         mainWindow.errorConnection(ex);
     }
 }
Example #5
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;
        }
Example #6
0
        private void findHDDByEmploy_Click(object sender, RoutedEventArgs e)
        {
            SearchEngine searchEngine = new SearchEngine();
            string       str;
            bool         hasInput = searchEngine.TryGetSurname("Поиск жесткого диска по сотруднику", out str);

            if (hasInput)
            {
                var Rooms = Querys.hardDriveByEmploy(str);
                if (HasRows(Rooms))
                {
                    SimpleQueryResult = new SimpleQueryResult(Rooms);
                    NavigationService.Navigate(SimpleQueryResult);
                }
                else
                {
                    searchEngine.checkError("Поиск жесткого диска по сотруднику");
                }
            }
        }
Example #7
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("Поиск сотрудника по номеру кабинета");
                }
            }
        }