CreateChange.xaml.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. using BuzuevaDemo.Classes;
  15. using BuzuevaDemo.Pages;
  16. namespace BuzuevaDemo
  17. {
  18. /// <summary>
  19. /// Логика взаимодействия для CreateChange.xaml
  20. /// </summary>
  21. public partial class CreateChange : Window
  22. {
  23. public CreateChange(Agent idagent, int a)
  24. {
  25. InitializeComponent();
  26. if (a == 0)
  27. {
  28. PageChange.Navigate(new ChangeData());
  29. ChangePage.swithpages = PageChange;
  30. }
  31. if (a == 1)
  32. {
  33. PageChange.Navigate(new CreateData());
  34. ChangePage.swithpages = PageChange;
  35. }
  36. }
  37. }
  38. }