public bool RemoveAllRelations()
        {
            var c = new ClientServer(ClientID);
            var dataComponentModal = new Data.Component.ComponentModal(c.GetServer().Connection());

            dataComponentModal.RemoveAllItemRelation(this.ClientID, this.ComponentModalItemID);
            return(true);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="modalid"></param>
        /// <returns></returns>
        public bool RemoveItem(string modalid)
        {
            var c = new ClientServer(ClientID);
            var dataComponentModal = new Data.Component.ComponentModal(c.GetServer().Connection());

            if (dataComponentModal.RemoveModalItem(this.ClientID, modalid, this.ComponentModalItemID))
            {
                dataComponentModal.RemoveAllItemRelation(this.ClientID, this.ComponentModalItemID);
                return(true);
            }
            else
            {
                return(false);
            }
        }
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public bool Remove()
 {
     if (dataComponentModal.Remove(this.ClientID, this.ComponentModalID))
     {
         dataComponentModal.RemoveAllModalItem(this.ClientID, this.ComponentModalID);
         var a = "";
         foreach (ComponentNode cn in this.ComponentModalRoot)
         {
             a = a + "," + cn.ComponentModalItemID;
         }
         if (a.StartsWith(","))
         {
             a = a.Substring(1);
         }
         dataComponentModal.RemoveAllItemRelation(this.ClientID, a);
         return(true);
     }
     else
     {
         return(false);
     }
 }