示例#1
0
 /// <summary>
 /// 标定点列表改变事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BaseCalibreationViewModel_CalibrationPointListChanged(object sender, CalibrationPointListChangedEventArgs e)
 {
     PointIndexs.Clear();
     for (int i = 0; i < e.CalibPointList.Count + 1; i++)
     {
         PointIndexs.Add(i);
     }
     RobotPointIndex = ImagePointIndex = PointIndexs[PointIndexs.Count - 1];
 }
示例#2
0
        /// <summary>
        /// 创建AdvanceCalibrationViewModel新实例
        /// </summary>
        public AdvanceCalibrationViewModel()
        {
            sceneManager = SceneManager.GetInstance();

            UpdateScenes();
            UpdateRobotAssembly();

            BaseCalibreationViewModel = new BaseCalibreationViewModel();
            BaseCalibreationViewModel.MessageRaised += BaseCalibreationViewModel_MessageRaised;
            BaseCalibreationViewModel.CalibrationPointListChanged      += BaseCalibreationViewModel_CalibrationPointListChanged;
            BaseCalibreationViewModel.CalibrationPointSelectionChanged += BaseCalibreationViewModel_CalibrationPointSelectionChanged;

            NotifyOfPropertyChange(() => BaseCalibreationViewModel);

            PointIndexs.Clear();
            for (int i = 0; i < BaseCalibreationViewModel.CalibPointList.Count + 1; i++)
            {
                PointIndexs.Add(i);
            }
            RobotPointIndex = ImagePointIndex = PointIndexs[PointIndexs.Count - 1];
        }