private void allTech_Click(object sender, RoutedEventArgs e) { //SimpleQueryResult = new SimpleQueryResult(); SimpleQueryResult = new SimpleQueryResult(Querys.readTech()); NavigationService.Navigate(SimpleQueryResult); MainWin.Title = "Вся техника"; }
private void allCharac_Click(object sender, RoutedEventArgs e) { //SimpleQueryResult = new SimpleQueryResult(); SimpleQueryResult = new SimpleQueryResult(Querys.readSysCharacter()); NavigationService.Navigate(SimpleQueryResult); MainWin.Title = "Вся характиристики"; }
private void allHDD_Click(object sender, RoutedEventArgs e) { //SimpleQueryResult = new SimpleQueryResult(); SimpleQueryResult = new SimpleQueryResult(Querys.readHDD()); NavigationService.Navigate(SimpleQueryResult); MainWin.Title = "Все жёсткие диски"; }
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); } }
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; }
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("Поиск жесткого диска по сотруднику"); } } }
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("Поиск сотрудника по номеру кабинета"); } } }