FixedUpCameraFindP0.xaml.cs 867 B

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