FixedUpCameraFindP0.xaml.cs 911 B

12345678910111213141516171819202122232425262728
  1. using System.Windows.Controls;
  2. using TeamAAS_VP.Core.Robots;
  3. using TeamAAS_VP.ViewModels.Calibration;
  4. namespace TeamAAS_VP.Views.Calibration
  5. {
  6. /// <summary>
  7. /// Interaction logic for FixedUpCameraFindP0
  8. /// </summary>
  9. public partial class FixedUpCameraFindP0 : UserControl
  10. {
  11. FixedUpCameraFindP0ViewModel VM;
  12. public FixedUpCameraFindP0()
  13. {
  14. InitializeComponent();
  15. VM = DataContext as FixedUpCameraFindP0ViewModel;
  16. VM.PropertyChanged += VM_PropertyChanged;
  17. ((FixedUpCameraFindP0ViewModel)DataContext).ToolBlockEdit = this.ToolBlockEditV2;
  18. }
  19. private void VM_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
  20. {
  21. if (e.PropertyName == "Robot")
  22. {
  23. this.robotManual.Robot = VM.Robot as XYZU_Robot;
  24. }
  25. }
  26. }
  27. }