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