Example #1
0
        internal void UpdateOverviewRect()
        {
            GoOverviewRectangle overviewRect = OverviewRect;

            if (overviewRect != null && !overviewRect.Initializing)
            {
                overviewRect.UpdateRectFromView();
            }
        }
Example #2
0
 /// <summary>
 /// Initialize the layers of this view.
 /// </summary>
 /// <remarks>
 /// This method makes sure this overview's layers are the same as that of its document.
 /// It also adds the result of <see cref="M:Northwoods.Go.GoOverview.CreateOverviewRectangle(Northwoods.Go.GoView)" /> to this
 /// view's default layer.
 /// </remarks>
 public override void InitializeLayersFromDocument()
 {
     base.InitializeLayersFromDocument();
     if (Observed != null)
     {
         myOverviewRect        = CreateOverviewRectangle(Observed);
         myOverviewRect.Bounds = Observed.DocExtent;
         base.Layers.Default.Add(myOverviewRect);
         myOverviewRect.AddSelectionHandles(Selection, myOverviewRect);
     }
 }