Esempio n. 1
0
        /// <summary>
        /// 打开文档
        /// </summary>
        /// <param name="type">文档类型</param>
        /// <returns>文档</returns>
        public static DocumentBase OpenDocument(Type type)
        {
            #region # 验证

            if (_Current == null)
            {
                throw new ApplicationException("元素管理器未初始化!");
            }
            if (type == null)
            {
                return(null);
            }

            #endregion

            return(_Current.OpenDocument(type));
        }