示例#1
0
 public void ChangeStateCheckedRules(CRulesListViewData data, ERuleState newState)
 {
     foreach (var item in data.CheckedRuleItems)
     {
         item.Rule.State = newState;
         _storageService.UpdateRule(item.Rule);
         Mediator.NotifyColleagues(EMessageTypes.MsgRuleSaved, data);
     }
 }
示例#2
0
 public static CRule CreateRule(Guid ruleId, string folder, bool includeSubfolders, string email, bool notify,
                                string masksInclude, string masksExclude, EFileEvents fileEvents, ERuleState state, Guid clientId)
 {
     return(new CRule()
     {
         RuleId = ruleId,
         Folder = folder,
         IncludeSubfolders = includeSubfolders,
         Email = email,
         Notify = notify,
         MasksExclude = masksExclude,
         MasksInclude = masksInclude,
         FileEvents = fileEvents,
         State = state,
         ClientInfoId = clientId
     });
 }