示例#1
0
        /// <summary>
        /// Get the enumeration with the specified name.
        /// </summary>
        /// <remarks>
        /// See also the properties for the enumerations.
        /// </remarks>
        /// <param name="enumerationName">
        /// Enumeration name (eg: status, access_levels, ...etc)
        /// </param>
        /// <param name="enumeration">
        /// An output parameter to contain the created <see cref="MantisEnum"/> instance.
        /// </param>
        public void Get(string enumerationName, out MantisEnum enumeration)
        {
            string str;

            string configOption = string.Format("{0}_enum_string", enumerationName);

            this.Get(configOption, out str);

            enumeration = new MantisEnum(str);
        }
示例#2
0
 /// <summary>
 /// Connects to the webservice.
 /// </summary>
 public void Connect()
 {
     // call any method to trigger authentication, if url, username, password are valid, then
     // nothing will happen, otherwise an exception will be raised.
     MantisEnum temp = Config.StatusEnum;
 }