ChangedWindow.xaml.cs 947 B

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