/// <summary> /// 修改皮肤文件的使用人数 /// </summary> /// <param name="sender"></param> /// <param name="eventArgs"></param> private void ChangeThemeAppearanceUserCountModule_After(GroupEntity sender, CommonEventArgs eventArgs) { var themeService = new ThemeService(); PresentAreaService presentAreaService = new PresentAreaService(); if (eventArgs.EventOperationType == EventOperationType.Instance().Create()) { var presentArea = presentAreaService.Get(PresentAreaKeysOfBuiltIn.GroupSpace); themeService.ChangeThemeAppearanceUserCount(PresentAreaKeysOfBuiltIn.GroupSpace, null, presentArea.DefaultThemeKey + "," + presentArea.DefaultAppearanceKey); } else if (eventArgs.EventOperationType == EventOperationType.Instance().Delete()) { var presentArea = presentAreaService.Get(PresentAreaKeysOfBuiltIn.GroupSpace); string defaultThemeAppearance = presentArea.DefaultThemeKey + "," + presentArea.DefaultAppearanceKey; if (!sender.IsUseCustomStyle) { themeService.ChangeThemeAppearanceUserCount(PresentAreaKeysOfBuiltIn.GroupSpace, !string.IsNullOrEmpty(sender.ThemeAppearance) ? sender.ThemeAppearance : defaultThemeAppearance, null); } } }