public void SetContext(long contID, long docID, long parID, MorphNode theNode, treeOper tOper) { this.typeOper = tOper; this.contID = contID; this.docID = docID; this.parID = parID; this.theNode = theNode; ParagraphMap pMap = null; switch (tOper) { case (treeOper.toEdit): pMap = store.GetParagraph(contID, docID, parID); break; case (treeOper.toAdd): pMap = new ParagraphMap(-1, docID); break; } this.paraMap = new ParagraphMap(pMap); }
public FormParaEdit(AsmNode theNode, treeOper tOper) { InitializeComponent(); this.theNode = theNode; this.typeOper = tOper; AssemblyBase asm = null; switch (tOper) { case (treeOper.toEdit): asm = theNode.Assembly; break; case (treeOper.toAdd): asm = store.CreateParagraph(theNode.Assembly.BlockID); break; } this.paraAsm = new ParagraphAsm(asm); }