public void SetCriteria(VersionInfoSearchCriteria criteria) { m_CritGui.SetCriteria(criteria); }
public void SetButtonsToCriteria(VersionInfoSearchCriteria crit) { for (int i = 0; i < 24; i++) { m_HourButton[i].State = StateEnum.NoPreferenceNoCall; } foreach (int h in crit.Hours) { m_HourButton[h].State = StateEnum.IncludeThisExcludeOthersNoCall; } foreach (int h in crit.HoursR) { m_HourButton[h].State = StateEnum.ExcludeNoCall; } foreach (DayOfWeek d in Enum.GetValues(typeof(DayOfWeek))) { m_DayNames[d].State = StateEnum.NoPreferenceNoCall; } foreach (DayOfWeek d in crit.DaysOfWeek) { m_DayNames[d].State = StateEnum.IncludeThisExcludeOthersNoCall; } foreach (DayOfWeek d in crit.DaysOfWeekR) { m_DayNames[d].State = StateEnum.ExcludeNoCall; } for (int m = 1; m < 13; m++ ) { m_MonthButton[m].State = StateEnum.NoPreferenceNoCall; } foreach(int m in crit.Months) { m_MonthButton[m].State = StateEnum.IncludeThisExcludeOthersNoCall; } foreach (int m in crit.MonthsR) { m_MonthButton[m].State = StateEnum.ExcludeNoCall; } for (int d= 1; d < 32; d++) { m_DayOfMonth[d].State = StateEnum.NoPreferenceNoCall; } foreach (int d in crit.DaysOfMonth) { m_DayOfMonth[d].State = StateEnum.IncludeThisExcludeOthersNoCall; } foreach (int d in crit.DaysOfMonthR) { m_DayOfMonth[d].State = StateEnum.ExcludeNoCall; } foreach (int y in m_Cal.m_FTObjects.GetYears) { m_YearCheckBox[y].State = StateEnum.NoPreferenceNoCall; } foreach (int y in crit.Years) { m_YearCheckBox[y].State = StateEnum.IncludeThisExcludeOthersNoCall; } foreach (int y in crit.YearsR) { m_YearCheckBox[y].State = StateEnum.ExcludeNoCall; } }
public void SetCriteria(VersionInfoSearchCriteria crit) { m_Criteria = crit; PerformSearch(); SetButtonsToCriteria(crit); }
private void InitializeVariables() { m_Criteria = new VersionInfoSearchCriteria(); MonthNumFromName = new Dictionary<string, int>(); HourNFromName = new Dictionary<string, int>(); }