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