Exemplo n.º 1
0
        public void LoadData()
        {
            if (windowControl == null)
            {
                return;
            }
            flowLayoutPanel.Controls.Clear();
            List <CBaseObject> lstButton = windowControl.NavigateBarButtonMgr.GetList();

            foreach (CBaseObject obj in lstButton)
            {
                CNavigateBarButton    navbt   = (CNavigateBarButton)obj;
                NavigateBarButtonCtrl navbtEl = new NavigateBarButtonCtrl();
                navbtEl.NavigateBarButton = navbt;
                navbtEl.Title             = navbt.Name;
                navbtEl.SetIcon(navbt.Icon);

                Add(navbtEl);
            }
        }
Exemplo n.º 2
0
 public void Add(NavigateBarButtonCtrl navbt)
 {
     flowLayoutPanel.Controls.Add(navbt);
 }