Example #1
0
        /// <summary>
        /// 初始化
        /// </summary>
        /// <returns></returns>
        public static OperationResult Initialize()
        {
            var    settings = Locator.Settings;
            string dmPath   = settings.DmFile;
            var    result   = OperationHelper.GetDmSystem(dmPath);

            if (result.Successed)
            {
                DmSystem           = result.Data;
                settings.DmVersion = DmSystem.Dm.Ver();
            }
            return(new OperationResult(result.ResultType, result.Message));
        }