/// <summary>
 /// Creates the Subactions panel and generates the corresponding events
 /// </summary>
 private void CreateGroupPanel()
 {
     this.groupPanel               = new ToolGroupPanel(this.tools, this.groupSettings);
     this.groupPanel.InitInsert   += new ToolEventHandler(groupPanel_InitInsert);
     this.groupPanel.DoInsert     += new PointEventHandler(groupPanel_DoInsert);
     this.groupPanel.CancelInsert += new EventHandler(groupPanel_CancelInsert);
     this.groupPanel.MouseEnter   += new EventHandler(groupPanel_MouseEnter);
     this.groupPanel.MouseLeave   += new EventHandler(groupPanel_MouseLeave);
     if (this.ShowPanel != null)
     {
         this.ShowPanel(this, new GroupPanelEventArgs(this.groupPanel, this.PointToScreen(new Point(this.Width, 0))));
     }
 }
 /// <summary>
 /// Removes the subaction panel
 /// </summary>
 private void RemoveGroupPanel()
 {
     if (this.ClosePanel != null)
     {
         this.ClosePanel(this, new EventArgs());
     }
     this.groupPanel.InitInsert   -= this.groupPanel_InitInsert;
     this.groupPanel.DoInsert     -= this.groupPanel_DoInsert;
     this.groupPanel.CancelInsert -= this.groupPanel_CancelInsert;
     this.groupPanel.MouseEnter   -= this.groupPanel_MouseEnter;
     this.groupPanel.MouseLeave   -= this.groupPanel_MouseLeave;
     this.groupPanel = null;
 }