Example #1
0
 void OnMapSelectionChanged(object sender, EventArgs e)
 {
     if (_propPane != null || _statBar != null)
     {
         var sel  = _viewer.GetSelection();
         var sset = new MgSelectionSet(sel, _viewer.GetProvider());
         if (_propPane != null)
         {
             _propPane.Init(sset);
         }
         if (_statBar != null)
         {
             _statBar.SetFeatureSelectedMessage(string.Format(Strings.StatFeaturesSelected, sset.TotalCount));
         }
     }
 }