CalibrationTeachCenterPoint.xaml.cs 811 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 CalibrationTeachCenterPoint
  7. /// </summary>
  8. public partial class CalibrationTeachCenterPoint : UserControl
  9. {
  10. CalibrationTeachCenterPointViewModel VM;
  11. public CalibrationTeachCenterPoint()
  12. {
  13. InitializeComponent();
  14. VM=DataContext as CalibrationTeachCenterPointViewModel;
  15. VM.PropertyChanged += VM_PropertyChanged;
  16. }
  17. private void VM_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
  18. {
  19. if (e.PropertyName== "Robot")
  20. {
  21. this.robotManual.Robot = VM.Robot;
  22. }
  23. }
  24. }
  25. }