public SearchFilter(List <CriminalEventType> inCriminalEventTypes, List <string> inKeyWordsSearchAddress, List <string> inKeyWordsSearchFamily, DaysFilter inDays, TimeFilter inTime, DateFilter inDate, QueryLogic logic) { Days = inDays; Time = inTime; Date = inDate; DaysFilterOn = (inDays == null) ? false : true; TimeFilterOn = (inTime == null) ? false : true; DateFilterOn = (inDate == null) ? false : true; KeyWordsSearchAddress = inKeyWordsSearchAddress; KeyWordsSearchAddressOn = (KeyWordsSearchAddress != null); KeyWordsSearchFamily = inKeyWordsSearchFamily; KeyWordsSearchFamilyOn = (KeyWordsSearchFamily != null); CriminalEventTypes = inCriminalEventTypes; CriminalEventTypesSearchOn = (CriminalEventTypes != null); Logic = logic; }
public SearchFilter(DaysFilter inDays) { Days = inDays; DaysFilterOn = true; TimeFilterOn = false; DateFilterOn = false; KeyWordsSearchOn = false; CriminalEventTypesSearchOn = false; KeyWordsSearchAddressOn = false; KeyWordsSearchFamilyOn = false; Logic = QueryLogic.Unknown; }
public SearchFilter(DaysFilter inDays, TimeFilter inTime, DateFilter inDate) { Days = inDays; Time = inTime; Date = inDate; DaysFilterOn = (inDays == null) ? false : true; TimeFilterOn = (inTime == null) ? false : true; DateFilterOn = (inDate == null) ? false : true; KeyWordsSearchOn = false; CriminalEventTypesSearchOn = false; KeyWordsSearchAddressOn = false; KeyWordsSearchFamilyOn = false; Logic = QueryLogic.Unknown; }