Пример #1
0
        /// <summary>
        /// Initializes the module item if needed.
        /// </summary>
        private void InitModuleItem(ModuleItem moduleItem)
        {
            if (!moduleItem.IsInitialized)
            {
                moduleItem.IsInitialized = true;

                if (ExtensionUtils.GetModuleView(adminContext, serverApp, moduleItem.ModuleCode,
                                                 out ModuleView moduleView, out string message))
                {
                    moduleItem.Descr      = BuildModuleDescr(moduleView);
                    moduleItem.ModuleView = moduleView;
                }
                else
                {
                    moduleItem.Descr      = message;
                    moduleItem.ModuleView = null;
                }
            }