public override void Run() { using (FormDesignerEvents formEvents = new FormDesignerEvents()) { formEvents.ShowDialog(); } }
protected override string CreateUniqueMethodName(System.ComponentModel.IComponent component, System.ComponentModel.EventDescriptor e) { ISelectionService selectionService = this.GetService(typeof(ISelectionService)) as ISelectionService; if (selectionService.SelectionCount == 1) { FormDesignerEvents formEvents = new FormDesignerEvents(); formEvents.ShowDialog(); } return(String.Empty); }