Ejemplo n.º 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;
 }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 3
0
 internal void SetMapCenter(object sender, MapLocationEventArgs e)
 {
     if (LocationChanged != null)
         LocationChanged(sender, e);
 }
Ejemplo n.º 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());
         }
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 6
0
 private void EventPublisherOnLocationChanged(object sender, MapLocationEventArgs mapLocationEventArgs)
 {
     GridExVillage.Refresh();
 }
Ejemplo n.º 7
0
 private void EventPublisher_LocationChanged(object sender, MapLocationEventArgs e)
 {
     _ruler.ClearCache();
     XRuler.Invalidate();
     YRuler.Invalidate();
 }
Ejemplo n.º 8
0
 private void EventPublisher_LocationChanged(object sender, MapLocationEventArgs e)
 {
     Invalidate();
 }