Пример #1
0
        protected DistanceAndDirectionDockpaneViewModel()
        {
            // set some views and datacontext
            LinesView             = new GRLinesView();
            LinesView.DataContext = new ProLinesViewModel();

            CircleView             = new GRCircleView();
            CircleView.DataContext = new ProCircleViewModel();

            EllipseView             = new GREllipseView();
            EllipseView.DataContext = new ProEllipseViewModel();

            RangeView             = new GRRangeView();
            RangeView.DataContext = new ProRangeViewModel();

            // load the configuration file
            DistanceAndDirectionConfig.AddInConfig.LoadConfiguration();
        }
Пример #2
0
        public MainViewModel()
        {
            // set some views and datacontext
            LinesView             = new GRLinesView();
            LinesView.DataContext = new LinesViewModel();

            CircleView             = new GRCircleView();
            CircleView.DataContext = new CircleViewModel();

            EllipseView             = new GREllipseView();
            EllipseView.DataContext = new EllipseViewModel();

            RangeView             = new GRRangeView();
            RangeView.DataContext = new RangeViewModel();

            // load the configuration file
            DistanceAndDirectionConfig.AddInConfig.LoadConfiguration();
        }