Beispiel #1
0
        public ProfileView(Project prj, EngineeringMap eMap)
        {
            InitializeComponent();

            if (eMap.MapID.Contains('右'))
            {
                partchar = '右';
            }
            else
            {
                partchar = '左';
            }
            Themeinit();
            _view      = new IS3ProfileView(this, MyMapView);
            _view.prj  = prj;
            _view.eMap = eMap;

            _view.LayerToGeofile      = LayerToGeofile;
            MyProgressBar.DataContext = _view;

            GotFocus += ProfileView_GotFocus;
            Globals.mainFrame.viewLoaded += initlayerwindow;
            customrulers = new Dictionary <string, Ruler>();
            initMainruler();

            MyMapView.ExtentChanged += MyMapView_ExtentChanged;
        }
Beispiel #2
0
        public PlanView(Project prj, EngineeringMap eMap)
        {
            InitializeComponent();
            _view      = new IS3View2D(this, MyMapView);
            _view.prj  = prj;
            _view.eMap = eMap;
            MyProgressBar.DataContext = _view;

            GotFocus += PlanView_GotFocus;
            //MyDrawToolControl.drawToolClickEventHandler += _view.drawToolsClickEventListener;
            //MyDrawToolControl.drawToolClickEventHandler += (o, e) =>
            //{
            //    if (e.stopDraw)
            //        DrawStrip.Visibility = Visibility.Collapsed;
            //};
        }