public long?ClearAdditionalEvent(long?EventInDB, enResultColumnNumber Columns, enAdditionalEventTypes flags) { if (EventInDB.HasValue) { if (Columns.HasFlag(enResultColumnNumber.Route1)) { EventInDB = EventInDB & ~(long)flags; } if ((enAdditionalEventTypes?)EventInDB == enAdditionalEventTypes.None) { EventInDB = null; } } return(EventInDB); }
public void ClearAdditionalEvents(enResultColumnNumber Columns, enAdditionalEventTypes flags) { event_1 = ClearAdditionalEvent(event_1, Columns, flags); event_2 = ClearAdditionalEvent(event_2, Columns, flags); event_sum = ClearAdditionalEvent(event_sum, Columns, flags); }