HelpQustionWindow.xaml.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. namespace Hotel_Course_Project
  15. {
  16. /// <summary>
  17. /// Логика взаимодействия для HelpQustionWindow.xaml
  18. /// </summary>
  19. public partial class HelpQustionWindow : Window
  20. {
  21. public HelpQustionWindow(Staff user)
  22. {
  23. InitializeComponent();
  24. TypeQuestionCB.ItemsSource = DataBase.db.HelpQuestion.ToList();
  25. if (user.Id_HelpQuestion != null)
  26. {
  27. TypeQuestionCB.Text = user.ToString();
  28. TypeQuestionCB.IsEditable = false;
  29. }
  30. }
  31. private void CancelBtn_Click(object sender, RoutedEventArgs e)
  32. {
  33. DialogResult = false;
  34. }
  35. private void AcceptBtn_Click(object sender, RoutedEventArgs e)
  36. {
  37. DialogResult = true;
  38. }
  39. }
  40. }