public Action() { /// <summary> /// Required for Windows.Forms Class Composition Designer support /// </summary> InitializeComponent(); _shortcuts = new ShortcutKeysCollection(this); }
public Action(System.ComponentModel.IContainer container) { /// <summary> /// Required for Windows.Forms Class Composition Designer support /// </summary> container.Add(this); InitializeComponent(); _shortcuts = new ShortcutKeysCollection(this); }
/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if(components != null) { components.Dispose(); } foreach(ActionData ad in _components.Values) { ad.Detach(DesignMode); } if(components != null) { _components.Clear(); _components = null; } if(_shortcuts != null) { _shortcuts.Dispose(); _shortcuts = null; } } base.Dispose( disposing ); }