private void checkbox_Changed(object sender, EventArgs e) { if (sender == timestampFilterAfterEnabledCheckBox) { FilterHelper.UpdateTimeFilterSensitivity(timestampFilterAfterEnabledCheckBox.Checked, timestampAfterDateTimePicker, Filter.TimeAfter); } else if (sender == timestampFilterBeforeEnabledCheckBox) { FilterHelper.UpdateTimeFilterSensitivity(timestampFilterBeforeEnabledCheckBox.Checked, timestampBeforeDateTimePicker, Filter.TimeBefore); } this.okButton.Enabled = true; this.applyButton.Enabled = true; }
private void filterCheckBox_Click(object sender, EventArgs e) { if (sender == timeInFilterAfterEnabledCheckBox) { FilterHelper.UpdateTimeFilterSensitivity(timeInFilterAfterEnabledCheckBox.Checked, timeInAfterDateTimePicker, Filter.TimeInAfter); } else if (sender == timeInFilterBeforeEnabledCheckBox) { FilterHelper.UpdateTimeFilterSensitivity(timeInFilterBeforeEnabledCheckBox.Checked, timeInBeforeDateTimePicker, Filter.TimeInBefore); } else if (sender == timeInEmptyCheckBox) { Filter.TimeInEmpty = timeInEmptyCheckBox.Checked; } else if (sender == finalStateTimeFilterAfterEnabledCheckBox) { FilterHelper.UpdateTimeFilterSensitivity(finalStateTimeFilterAfterEnabledCheckBox.Checked, finalStateTimeAfterDateTimePicker, Filter.FinalStateTimeAfter); } else if (sender == finalStateTimeFilterBeforeEnabledCheckBox) { FilterHelper.UpdateTimeFilterSensitivity(finalStateTimeFilterBeforeEnabledCheckBox.Checked, finalStateTimeBeforeDateTimePicker, Filter.FinalStateTimeBefore); } else if (sender == finalStateTimeEmptyCheckBox) { Filter.FinalStateTimeEmpty = finalStateTimeEmptyCheckBox.Checked; } else if (sender == callbackAttemptsMinEnabledCheckBox) { UpdateCallbackAttemptsFilterSensitivity(callbackAttemptsMinEnabledCheckBox.Checked, callbackAttemptsMinNumericUpDown, Filter.CallbackAttemptsMin); } else if (sender == callbackAttemptsMaxEnabledCheckBox) { UpdateCallbackAttemptsFilterSensitivity(callbackAttemptsMaxEnabledCheckBox.Checked, callbackAttemptsMaxNumericUpDown, Filter.CallbackAttemptsMax); } this.okButton.Enabled = true; this.applyButton.Enabled = true; }