private void AddBarLookAndFeelItem(BarLinksHolder holder, BarLookAndFeelItem item, string caption)
 {
     item.Caption    = caption;
     item.ItemClick += new ItemClickEventHandler(this.OnItemClick);
     item.UpdateState(this.lookAndFeel);
     holder.AddItem(item);
 }
        private void OnItemClick(object sender, ItemClickEventArgs e)
        {
            BarLookAndFeelItem item = e.Item as BarLookAndFeelItem;

            if (item != null)
            {
                item.ApplyChanges(this.lookAndFeel);
            }
        }
Exemplo n.º 3
0
 void AddBarLookAndFeelItem(BarLinksHolder holder, BarLookAndFeelItem item, string caption)
 {
     item.Caption = caption;
     item.ItemClick += new ItemClickEventHandler(OnItemClick);
     item.UpdateState(lookAndFeel);
     holder.AddItem(item);
 }