Пример #1
0
 /// <summary>
 /// New location
 /// </summary>
 private void EventPublisher_LocationChanged(object sender, MapLocationEventArgs e)
 {
     _updatingZoom = true;
     ZoomControl.Minimum = e.ZoomInfo.Minimum;
     ZoomControl.Maximum = e.ZoomInfo.Maximum;
     ZoomControl.Value = e.NewLocation.Zoom;
     _updatingZoom = false;
 }
Пример #2
0
        private void EventPublisher_LocationChanged(object sender, MapLocationEventArgs e)
        {
            if (e.IsDisplayChange)
            {
                bool isInShapeDisplay = e.NewLocation.Display == DisplayTypes.Shape;

                ToolStripIconDisplay.CheckState = !isInShapeDisplay ? CheckState.Checked : CheckState.Unchecked;
                ToolStripShapeDisplay.CheckState = isInShapeDisplay ? CheckState.Checked : CheckState.Unchecked;

                MenuMapIconDisplay.CheckState = ToolStripIconDisplay.CheckState;
                MenuMapShapeDisplay.CheckState = ToolStripShapeDisplay.CheckState;
            }
        }
Пример #3
0
 internal void SetMapCenter(object sender, MapLocationEventArgs e)
 {
     if (LocationChanged != null)
         LocationChanged(sender, e);
 }
Пример #4
0
 private void EventPublisher_LocationChanged(object sender, MapLocationEventArgs e)
 {
     foreach (var row in Table.TableModel.Rows.OfType<Row>())
     {
         var twRow = row as ITwContextMenu;
         if (twRow != null)
         {
             row.Cells[0].Image = GetVisibleImage(twRow.GetVillages());
         }
     }
 }
Пример #5
0
 /// <summary>
 /// Update visibility of villages after map move
 /// </summary>
 private void EventPublisher_LocationChanged(object sender, MapLocationEventArgs e)
 {
     var villageDs = (PolygonDataSet)GridExVillage.DataSource;
     foreach (var record in villageDs.VILLAGE.Rows.OfType<PolygonDataSet.VILLAGERow>())
     {
         record.ISVISIBLE = World.Default.Map.Display.IsVisible(record.Village);
     }
 }
Пример #6
0
 private void EventPublisherOnLocationChanged(object sender, MapLocationEventArgs mapLocationEventArgs)
 {
     GridExVillage.Refresh();
 }
Пример #7
0
 private void EventPublisher_LocationChanged(object sender, MapLocationEventArgs e)
 {
     _ruler.ClearCache();
     XRuler.Invalidate();
     YRuler.Invalidate();
 }
Пример #8
0
 private void EventPublisher_LocationChanged(object sender, MapLocationEventArgs e)
 {
     Invalidate();
 }