Exemplo n.º 1
0
 public void Initialize(SourceMapOverviewWindow.ClosedDelegate closedDelegate, MapDrawingOption ShowDMS)
 {
     this.closedDelegate = closedDelegate;
     this.viewerControl.ShowDMS = ShowDMS;
     this.mapPos.setPosition(new ContinuousCoordinateSystem().GetDefaultView());
     base.Closed += new EventHandler(this.SourceMapOverviewWindow_Closed);
 }
Exemplo n.º 2
0
 public void SourceMapOverviewWindowClosed()
 {
     this.sourceMapOverviewWindow = null;
     this.showSourceMapOverviewMenuItem.Checked = false;
 }
Exemplo n.º 3
0
 private void showSourceMapOverviewMenuItem_Click(object sender, EventArgs e)
 {
     ((ToolStripMenuItem)sender).Checked = !((ToolStripMenuItem)sender).Checked;
     bool @checked = ((ToolStripMenuItem)sender).Checked;
     if (@checked && this.sourceMapOverviewWindow == null)
     {
         this.sourceMapOverviewWindow = new SourceMapOverviewWindow();
         this.sourceMapOverviewWindow.Initialize(new SourceMapOverviewWindow.ClosedDelegate(this.SourceMapOverviewWindowClosed), new MapDrawingOption(this.veViewerControl, this.showDMSMenuItem, false));
         this.sourceMapOverviewWindow.viewerControl.ShowPushPins = new MapDrawingOption(this.sourceMapOverviewWindow.viewerControl, this.showPushPinsMenuItem, true);
         this.sourceMapOverviewWindow.viewerControl.ShowSourceCrop = new MapDrawingOption(this.sourceMapOverviewWindow.viewerControl, this.showSourceCropToolStripMenuItem, true);
         this.sourceMapOverviewWindow.viewerControl.ShowDMS = new MapDrawingOption(this.sourceMapOverviewWindow.viewerControl, this.showDMSMenuItem, false);
         this.sourceMapOverviewWindow.Show();
         if (this.currentView is SourceMapViewManager)
         {
             this.SetupOverviewWindow((SourceMapViewManager)this.currentView);
             return;
         }
     }
     else
     {
         if (!@checked && this.sourceMapOverviewWindow != null)
         {
             this.sourceMapOverviewWindow.Close();
             this.sourceMapOverviewWindow = null;
         }
     }
 }