Ejemplo n.º 1
0
        protected override async Task OnStartupAsync()
        {
            //获取RibbonTab
            _projectTab = Mg.Get <IMgRibbon>().GetRibbonTab(LocalConfig.InsertTabName);
            if (_projectTab != null)
            {
                _groupVm = new PostilGroupViewModel();
                _projectTab.Groups.Add(_groupVm);
            }
            else
            {
                Mg.Get <IMgLog>().Warn($"没有找到名称为{LocalConfig.InsertTabName}的RibbonTab!批注管理应用无法插入相关Ribbon菜单!");
            }
            await DataApi.CreateIndexAsync(Hubs.Postil.T, new[] { Hubs.Postil.ProjectId });

            await DataApi.CreateIndexAsync(Hubs.Tag.T, new[] { Hubs.Postil.ProjectId });

            await Task.Yield();
        }