Beispiel #1
0
        public MainViewModel()
        {
            ConvertTabView             = new CCConvertTabView();
            ConvertTabView.DataContext = new ConvertTabViewModel();

            CollectTabView             = new CCCollectTabView();
            CollectTabView.DataContext = new CollectTabViewModel();
        }
        protected CoordinateConversionDockpaneViewModel()
        {
            ConvertTabView             = new CCConvertTabView();
            ConvertTabView.DataContext = new ProConvertTabViewModel();

            CollectTabView             = new CCCollectTabView();
            CollectTabView.DataContext = new ProCollectTabViewModel();

            MapSelectionChangedEvent.Subscribe(OnSelectionChanged);
        }
Beispiel #3
0
        public ConvertTabViewModel()
        {
            InputCCView             = new InputCoordinateConversionView();
            InputCCView.DataContext = this;

            OutputCCView             = new OutputCoordinateView();
            OutputCCView.DataContext = new OutputCoordinateViewModel();

            CollectTabView             = new CCCollectTabView();
            CollectTabView.DataContext = new CollectTabViewModel();

            InputCoordinateHistoryList = new ObservableCollection <string>();
        }
        public ConvertTabViewModel()
        {
            InputCCView             = new InputCoordinateConversionView();
            InputCCView.DataContext = this;

            OutputCCView             = new OutputCoordinateView();
            OutputCCView.DataContext = new OutputCoordinateViewModel();

            CollectTabView             = new CCCollectTabView();
            CollectTabView.DataContext = new CollectTabViewModel();

            InputCoordinateHistoryList = new ObservableCollection <string>();
            Mediator.Register(CoordinateConversionLibrary.Constants.DEACTIVATE_TOOL, OnDeactivateTool);
        }