NewPriority.xaml.cs 1004 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 User44
  15. {
  16. /// <summary>
  17. /// Логика взаимодействия для NewPriority.xaml
  18. /// </summary>
  19. public partial class NewPriority : Window
  20. {
  21. public NewPriority(double prior)
  22. {
  23. InitializeComponent();
  24. TbValue.Text = prior.ToString();
  25. }
  26. int newPrior = 0;
  27. private void ButtOk_Click(object sender, RoutedEventArgs e)
  28. {
  29. newPrior = Convert.ToInt32(TbValue.Text);
  30. this.Close();
  31. }
  32. public int NewPrior
  33. {
  34. get
  35. {
  36. return newPrior;
  37. }
  38. }
  39. }
  40. }