private void UserControl_Loaded(object sender, RoutedEventArgs e) { if (this.MapContainer == null && this.Parent != null && this.Parent is IMSMap) { this.MapContainer = this.Parent as IMSMap; } }
public PositionInfo(IMSMap mapContainer) { InitializeComponent(); this.m_mapContainer = mapContainer; onMousePosChange(); this.mydialogPanel.OnClose += new RoutedEventHandler(onClose); }
private void BaseUserControl_Loaded(object sender, RoutedEventArgs e) { if (this.MapContainer == null && this.Parent != null && this.Parent is IMSMap) this.MapContainer = this.Parent as IMSMap; this.comboBox_device.SelectedIndex = 0; this.datePicker1.SelectedDate = DateTime.Now; this.datePicker2.SelectedDate = DateTime.Now; }
private void NavigationPanel_Loaded(object sender, RoutedEventArgs e) { if (this.Parent is IMSMap) { m_mapContainer = this.Parent as IMSMap; MouseEnter += NavigationPanel_MouseEnter; MouseLeave += NavigationPanel_MouseLeave; GoToState(true); } }
void Magnifier_Loaded(object sender, RoutedEventArgs e) { if (this.MapContainer == null && this.Parent is IMSMap) { this.MapContainer = this.Parent as IMSMap; this.MapContainer.OperType = IMSOperType.None; } // OnApplyTemplate(); //this.OnApplyTemplate(); }
/// <summary> /// 门店查询 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void market_Search_Click(object sender, RoutedEventArgs e) { this.markLayer.ManuallyAddMarkObj = null; if (market_S == null) { market_S = new DataForm(); } this.market_S.mapContainer = this.mapContainer; this.market_S.markLayer = this.markLayer; market_S.Show(); }
private void UserControl_Loaded(object sender, RoutedEventArgs e) { if (this.MapContainer == null && this.Parent != null && this.Parent is IMSMap) { this.MapContainer = this.Parent as IMSMap; } if (this.MapContainer != null) { m_mapContainer_IMSResizeOver(null, null); } }
/** * 设置测量类型 */ private void setMeasureType() { if (this.m_graphicsLayer == null) { MessageBox.Show("m_graphicsLayer为空,请赋值!", "提示", MessageBoxButton.OK); return; } this.m_mapContainer = this.m_graphicsLayer.MapContainer as IMSMap; clearMeasurePnts(null, null, null); if (mymarklayer == null) { mymarklayer = new MarkLayer(); this.m_mapContainer.AddChild(mymarklayer); } this.m_graphicsLayer.Drawing += new DrawingEventHandler(addMeasurePoint); this.m_graphicsLayer.DrawingTypeChange += new DrawingTypeChangeEventHandler(typeChange); this.m_graphicsLayer.DrawingOver += new DrawingEventHandler(reDrawMeasurePnts); this.m_mapContainer.MapOperTypeChange += new IMSMapEventHandler(onOperTypeChange); }