Esempio n. 1
0
        private void UcMap_OnMapReplaced(object sender, IMapControlEvents2_OnMapReplacedEvent e)
        {
            if (MapExtentChanged != null)
            {
                MapExtentChanged.Invoke();
            }

            Control         pControl = ParentForm.Controls.Find("ribbonStatusBar", true)[0];
            RibbonStatusBar ITEM     = pControl as RibbonStatusBar;

            if (ITEM != null)
            {
                if (m_CurrentTask != null)
                {
                    for (int i = 0; i < ITEM.ItemLinks.Count; i++)
                    {
                        if (ITEM.ItemLinks[i].Item.Name.Equals("barStaticTask"))
                        {
                            ITEM.ItemLinks[i].Caption = string.Format("当前任务名:{0}, 任务路径:{1}", m_CurrentTask.Name, m_CurrentTask.Path);
                            break;
                        }
                    }
                }
            }
        }
Esempio n. 2
0
 private void UcMap_OnExtentUpdated(object sender, IMapControlEvents2_OnExtentUpdatedEvent e)
 {
     if (MapExtentChanged != null)
     {
         MapExtentChanged.Invoke();
     }
 }