private void btnDelete_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("This Flow item will be deleted.  Are you sure?", "Warning", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         _actTransFlow.RemoveTransition(_transitionItem);
         (this.Parent.Parent as TabControl).TabPages.Remove(this.Parent as TabPage);
     }
 }
 private void btnDeleteTrans_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show("This Flow item will be deleted.  Are you sure?", "Warning", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         if (_currentTransitionItem != null)
         {
             _actTransFlow.RemoveTransition(_currentTransitionItem);
             _currentTransitionItem = null;
             treeComponents.Nodes.Clear();
             _actTransFlow.Rebuild();
             Rebuild();
         }
     }
 }