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; }
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; }