Example #1
0
 public void BorderSizeChanged()
 {
     foreach (AnnoShapeModel annoShapeModel in AnnoShapeModelCollection)
     {
         CamWindowViewModel.mTranslatePosition(annoShapeModel);
     }
 }
Example #2
0
        public void AnnSelectionChanged(object sender)
        {
            CamWindowViewModel.mDeleteVertices();
            foreach (var thisAnnoShapeModel in AnnoShapeModelCollection)
            {
                thisAnnoShapeModel.Shape.Fill   = defaultBrush;
                thisAnnoShapeModel.Shape.Stroke = defaultStroke;
            }
            if (sender != null)
            {
                AnnoShapeModel thisAnnoShapeModel = sender as AnnoShapeModel;
                SelectedAnnoShapeModel = thisAnnoShapeModel;
                if (SelectedAnnoShapeModel.shapetype != ShapeType.line)
                {
                    SelectedAnnoShapeModel.Shape.Fill = selectedBrush;
                }

                CamWindowViewModel.AnnSelectionChanged();

                SelectedAnnoShapeModel.Shape.Stroke = selectedStroke;
                SignImage = SelectedAnnoShapeModel.signImageSource;
                NotifyOfPropertyChange(() => SignImage);

                CroppedBoxViewModel = new CroppedBoxViewModel(SelectedAnnoShapeModel, selectedImageNodeModel);
                GC.Collect();
            }
        }
Example #3
0
        public ShellViewModel()
        {
            AppDomain appDomain = AppDomain.CurrentDomain;

            appDomain.UnhandledException += new UnhandledExceptionEventHandler(ShutDown);
            EventAggregationProvider.EventAggregator.Subscribe(this);
            ActivateItem(new FileTabViewModel());
            CamWindowViewModel = new CamWindowViewModel();

            httpRequestClient = HttpRequestClient.Instance();
        }