Exemplo n.º 1
0
        public AssemblyBase CreateDocument(string name, BlockAddress ParentID)
        {
            var documentType = Session.Instance().GetBlockTypeByNameKey(Session.documentTypeName);
            var asm          = new AssemblyBase(documentType);

            asm.ParentID = ParentID;
            asm.SetValue("Name", name);
            asm.Save();
            return(asm);
        }
Exemplo n.º 2
0
 public void Delete()
 {
     try
     {
         assembly.Delete();
         assembly.Save();
         this.Remove();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.Source);
     }
 }