コード例 #1
0
        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);
        }