예제 #1
0
 public void UpdateLogList()
 {
     logLst.Items.Clear();
     if (jobCB.SelectedItem == null)
     {
         return;
     }
     if (availableYearsCB.SelectedIndex != -1 || availableMonthsCB.SelectedIndex != -1 || availableDaysCB.SelectedIndex != -1)
     {
         LogFilter.SetDate((int?)availableYearsCB.SelectedItem, (int?)availableMonthsCB.SelectedItem, (int?)availableDaysCB.SelectedItem);
         LogFilter.FilterLogs(selectedJob).ForEach(x => AddLogToList(x));
     }
     else
     {
         selectedJob.ForEach((log) => AddLogToList(log));
     }
 }