/// <summary>
 /// 自动安装专题的相关应用
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="eventArgs"></param>
 private void InstallApplicationsModule_After(TopicEntity sender, CommonEventArgs eventArgs)
 {
     ApplicationService applicationService = new ApplicationService();
     if (eventArgs.EventOperationType == EventOperationType.Instance().Create())
     {
         applicationService.InstallApplicationsOfPresentAreaOwner(PresentAreaKeysOfExtension.TopicSpace, sender.TopicId);
     }
     else if (eventArgs.EventOperationType == EventOperationType.Instance().Delete())
     {
         applicationService.DeleteApplicationsOfPresentAreaOwner(PresentAreaKeysOfExtension.TopicSpace, sender.TopicId);
     }
 }
Exemple #2
0
 /// <summary>
 /// 自动安装群组的相关应用
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="eventArgs"></param>
 private void InstallApplicationsModule_After(GroupEntity sender, CommonEventArgs eventArgs)
 {
     ApplicationService applicationService = new ApplicationService();
     if (eventArgs.EventOperationType == EventOperationType.Instance().Create())
     {
         applicationService.InstallApplicationsOfPresentAreaOwner(PresentAreaKeysOfBuiltIn.GroupSpace, sender.GroupId);
     }
     else if (eventArgs.EventOperationType == EventOperationType.Instance().Delete())
     {
         applicationService.DeleteApplicationsOfPresentAreaOwner(PresentAreaKeysOfBuiltIn.GroupSpace, sender.GroupId);
     }
 }