| 12345678910111213141516171819202122232425262728293031323334 |
- using System.Windows.Controls;
- using TeamAAS_VP.ViewModels.Calibration;
- using TeamAAS_VP.ViewModels.Product;
- namespace TeamAAS_VP.Views.Calibration
- {
- /// <summary>
- /// Interaction logic for CalibrationCameraParams
- /// </summary>
- public partial class CalibrationCameraParams : UserControl
- {
- CalibrationCameraParamsViewModel VM;
- public CalibrationCameraParams()
- {
- InitializeComponent();
- VM = DataContext as CalibrationCameraParamsViewModel;
- VM.PropertyChanged += VM_PropertyChanged;
- this.display.VerticalScrollBar=false;
- this.display.HorizontalScrollBar=false;
- }
- private void VM_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
- {
- if (e.PropertyName=="Robot")
- {
- this.robotManual.Robot = VM.Robot;
- }
- else if (e.PropertyName == "Image")
- {
- this.display.Image = VM.Image;
- }
- }
- }
- }
|