Пример #1
0
        public override void Add(int type, object value)
        {
            PDFPainterEventTreeNode node1;

            if (PDFPainterEventTree.IsErrorType(type))
            {
                throw new PDFPainterErrorEventException(type, value);
            }
            if (this.m_Root.Contains(type))
            {
                node1 = (this.m_Root[type] as PDFPainterEventTreeNode);
                if (node1 == null)
                {
                    return;
                }
                if ((2 == type) || (1 == type))
                {
                    if (node1.Contains(value))
                    {
                        return;
                    }
                    node1.Add(value);
                    return;
                }
                node1.Add(value);
                return;
            }
            PDFPainterEventTreeNode node2 = new PDFPainterEventTreeNode(type);

            node2.Add(value);
            this.m_Root.Add(type, node2);
        }
Пример #2
0
 // Methods
 public PDFPainterErrorEventException(int theType, object theValue) : base(PDFPainterEventTree.TypeToString(theType))
 {
     this.m_Type  = theType;
     this.m_Value = theValue;
 }