Ejemplo n.º 1
0
 /// <summary>
 /// Initializes the designer with the specified component.
 /// </summary>
 /// <param name="component">The <see cref="T:System.ComponentModel.IComponent"/> to associate with the designer. </param>
 public override void Initialize(IComponent component)
 {
     base.Initialize(component);
     buttonBar = (ButtonBar)component;
     buttonBar.ThemeProperty.ThemeChanged += delegate { RefreshComponent(); };
     buttonBar.SelectionChanged           += delegate { RefreshComponent(); };
     buttonBar.ItemsChanging  += delegate { RefreshComponent(); };
     buttonBar.ItemsClearing  += delegate { RefreshComponent(); };
     buttonBar.ItemsInserting += delegate { RefreshComponent(); };
     buttonBar.ItemsRemoving  += delegate { RefreshComponent(); };
     buttonBar.ItemClick      += delegate { RefreshComponent(); };
     buttonBar.Appearance.Bar.AppearanceChanged  += delegate { RefreshComponent(); };
     buttonBar.Appearance.Item.AppearanceChanged += delegate { RefreshComponent(); };
     designerActionList = new ButtonBarDesignerActionList(buttonBar);
     actionListCollection.Add(designerActionList);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes the designer with the specified component.
 /// </summary>
 /// <param name="component">The <see cref="T:System.ComponentModel.IComponent"/> to associate with the designer. </param>
 public override void Initialize(IComponent component)
 {
     base.Initialize(component);
     buttonBar = (ButtonBar) component;
     buttonBar.ThemeProperty.ThemeChanged += delegate { RefreshComponent(); };
     buttonBar.SelectionChanged += delegate { RefreshComponent(); };
     buttonBar.ItemsChanging += delegate { RefreshComponent(); };
     buttonBar.ItemsClearing += delegate { RefreshComponent(); };
     buttonBar.ItemsInserting += delegate { RefreshComponent(); };
     buttonBar.ItemsRemoving += delegate { RefreshComponent(); };
     buttonBar.ItemClick += delegate { RefreshComponent(); };
     buttonBar.Appearance.Bar.AppearanceChanged += delegate { RefreshComponent(); };
     buttonBar.Appearance.Item.AppearanceChanged += delegate { RefreshComponent(); };
     designerActionList = new ButtonBarDesignerActionList(buttonBar);
     actionListCollection.Add(designerActionList);
 }