예제 #1
0
        public void Show(IInfoBoxShape shape, Point offset)
        {
            ///TODO:  RoadWarrior; need to reevaluate Infobox implementation ;
            //Hide(true);

            //int _version = System.Threading.Interlocked.Increment(ref version);

            //object content = shape.InfoBoxContent;
            //if (content == null) {
            //    var contentProvider = shape.Layer.InfoBoxContentProvider;
            //    if (contentProvider != null) {
            //        contentProvider(shape, o => {
            //            if (_version == version && o != null) {
            //                ShowCore(shape, o, offset);
            //            }
            //        });
            //        return;
            //    }
            //} else {
            //    ShowCore(shape, content, offset);
            //}
        }
예제 #2
0
 public void Show(IInfoBoxShape shape)
 {
     var offset = new Point(0, 0);
     {
         if (shape.InfoBoxOffset != null)
         {
             offset = shape.InfoBoxOffset.Value;
         }
         else
         {
             //if (shape.Layer.InfoBoxOffset != null)
             //{
             //    offset = shape.Layer.InfoBoxOffset.Value;
             //}
         }
         Show(shape, offset);
     }
 }