コード例 #1
0
 public ICsiDocument CreateDocument(string name)
 {
     lock (this)
     {
         string str;
         if (!StringUtil.IsEmptyString(name))
         {
             try
             {
                 if (this.FindDocument(name) == null)
                 {
                     ICsiDocument document = new CsiDocument(this);
                     this.mDocuments[name] = document;
                     ICsiXmlElement parent = new CsiXmlElement(document, "__session", ((CsiDocument)document).GetRootElement());
                     if (string.IsNullOrEmpty(this.mPassword))
                     {
                         this.CreateConnectWithoutPassword(this.mUserName, this.mSessionId, parent);
                         return(document);
                     }
                     this.CreateConnect(this.mUserName, this.mPassword, parent);
                     return(document);
                 }
                 str = base.GetType().FullName + ".createDocument()";
                 throw new CsiClientException(0x2e0015L, str);
             }
             catch (Exception exception)
             {
                 throw new CsiClientException(-1L, exception, base.GetType().FullName + ".createDocument()");
             }
         }
         str = base.GetType().FullName + ".createDocument()";
         throw new CsiClientException(0x2e0016L, str);
     }
 }
コード例 #2
0
 public CsiSelectionValuesEx(CsiDocument doc, XmlElement element)
     : base(doc, element)
 {
 }
コード例 #3
0
 public CsiSelectionValuesEx(CsiDocument doc, ICsiXmlElement parent)
     : base(doc, "__selectionValuesEx", parent)
 {
 }