/// <summary>
 /// Clears the interface and refreshes the Document
 /// </summary>
 public void ClearDocument()
 {
     foreach (Group g in ContextMgr.Document.Groups)
     {
         DeleteTreeNode(g);
         ContextMgr.FireGroupSelected();
     }
     ContextMgr.Document.Groups.Clear();
 }
        /// <summary>
        /// Process for Deleting a Group
        /// </summary>
        public void InvokeGroupDelete()
        {
            DialogResult dr = MessageBoxHelper.QuestionYesNo(this, "This permanently deletes a Group\n Are You Sure?");

            if (dr == DialogResult.No)
            {
                return;
            }
            Group deleteGroup = (Group)_groupTreeView.SelectedNode.Tag;

            if (!ContextMgr.Deletegroup(deleteGroup))
            {
                MessageBoxHelper.Error(this, "Group could not be deleted!");
                return;
            }
            DeleteTreeNode(deleteGroup);
            ContextMgr.FireGroupSelected();
            MessageBoxHelper.Info(this, "Group Deleted!");
            _edited = true;
        }