Esempio n. 1
0
        public ImageViewModel()
        {
            HorizontalSplitPositionBarViewModel = new SplitPositionBarViewModel();
            VerticalSplitPositionBarViewModel   = new SplitPositionBarViewModel();

            HorizontalSplitPositionBarViewModel.AnyPositionChanged += new EventHandler((sender, e) =>
                                                                                       { OnRangeDataUpdated(); });
            VerticalSplitPositionBarViewModel.AnyPositionChanged += new EventHandler((sender, e) =>
                                                                                     { OnRangeDataUpdated(); });

            CurrentPositon = new PointInt(0, 0);

            MarkedPointList = new ObservableCollection <PointInt>();
            ShowCursorLine  = true;
        }
Esempio n. 2
0
        public ImageViewModel()
        {
            HorizontalSplitPositionBarViewModel = new SplitPositionBarViewModel();
            VerticalSplitPositionBarViewModel = new SplitPositionBarViewModel();

            HorizontalSplitPositionBarViewModel.AnyPositionChanged += new EventHandler((sender, e) =>
                { OnRangeDataUpdated(); });
            VerticalSplitPositionBarViewModel.AnyPositionChanged += new EventHandler((sender, e) =>
                { OnRangeDataUpdated(); });

            CurrentPositon = new PointInt(0, 0);

            MarkedPointList = new ObservableCollection<PointInt>();
            ShowCursorLine = true;
        }