Beispiel #1
0
 public void BorderSizeChanged()
 {
     foreach (AnnoShapeModel annoShapeModel in AnnoShapeModelCollection)
     {
         CamWindowViewModel.mTranslatePosition(annoShapeModel);
     }
 }
Beispiel #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();
            }
        }
Beispiel #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();
        }