예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UserReportInfo"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="url">The URL.</param>
        /// <param name="type">The type.</param>
        /// <param name="infoType">Type of the info.</param>
        public UserReportInfo(string name, string url, UserReportType type, string infoClass)
        {
            _name = name;
            _url = url;

            _type = type;

            _infoClass = infoClass;

            if(infoClass!=null && infoClass!= string.Empty)
            {
                try
                {
                    _info = (IUserReportInfo)AssemblyHelper.LoadObject(infoClass, typeof(IUserReportInfo));
                }
                catch(Exception ex)
                {
                    System.Diagnostics.Trace.WriteLine(ex);
                }
            }
        }
예제 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UserReportInfo"/> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="url">The URL.</param>
        /// <param name="type">The type.</param>
        /// <param name="infoType">Type of the info.</param>
        public UserReportInfo(string name, string url, UserReportType type, string infoClass)
        {
            _name = name;
            _url  = url;

            _type = type;

            _infoClass = infoClass;

            if (infoClass != null && infoClass != string.Empty)
            {
                try
                {
                    _info = (IUserReportInfo)AssemblyHelper.LoadObject(infoClass, typeof(IUserReportInfo));
                }
                catch (Exception ex)
                {
                    System.Diagnostics.Trace.WriteLine(ex);
                }
            }
        }