示例#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);
        }
示例#2
0
 public void Delete()
 {
     try
     {
         assembly.Delete();
         assembly.Save();
         this.Remove();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.Source);
     }
 }