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);
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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);
     }
 }
Ejemplo n.º 5
0
 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();
 }
Ejemplo n.º 6
0
 /// <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();
 }
Ejemplo n.º 7
0
 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);
     }
 }
Ejemplo n.º 8
0
 /**
  * 设置测量类型
  */
 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);
 }