GPSTrackerDetails.xaml.cs 975 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. using System.Windows;
  2. using Comal.Classes;
  3. using InABox.Wpf;
  4. namespace PRSDesktop
  5. {
  6. /// <summary>
  7. /// Interaction logic for GPSTrackerDetails.xaml
  8. /// </summary>
  9. public partial class GPSTrackerDetails : ThemableWindow
  10. {
  11. public GPSTrackerDetails()
  12. {
  13. InitializeComponent();
  14. }
  15. public GPSTracker Tracker { get; set; }
  16. private void Window_Loaded(object sender, RoutedEventArgs e)
  17. {
  18. DeviceID.Text = Tracker.DeviceID;
  19. Description.Text = Tracker.Description;
  20. }
  21. private void OKButton_Click(object sender, RoutedEventArgs e)
  22. {
  23. Tracker.DeviceID = DeviceID.Text;
  24. Tracker.Description = Description.Text;
  25. DialogResult = true;
  26. Close();
  27. }
  28. private void CancelButton_Click(object sender, RoutedEventArgs e)
  29. {
  30. DialogResult = false;
  31. Close();
  32. }
  33. }
  34. }