protected virtual void OnBeforeCreatingGroups(CreateGroupsEventArgs e) {
     if (this.BeforeCreatingGroups != null)
         this.BeforeCreatingGroups(this, e);
 }
 protected virtual void OnAfterCreatingGroups(CreateGroupsEventArgs e) {
     if (this.AfterCreatingGroups != null)
         this.AfterCreatingGroups(this, e);
 }
        //-----------------------------------------------------------------------------------
        #region OnEvents

        protected virtual void OnAboutToCreateGroups(CreateGroupsEventArgs e) {
            if (this.AboutToCreateGroups != null)
                this.AboutToCreateGroups(this, e);
        }