//public void setMatchMethod(MATCH_METHOD method) //{ // switch (method) // { // case MATCH_METHOD.ALL: // this.findMatch = findMatchAll; // return; // case MATCH_METHOD.LOCAL: // this.findMatch = findMatchLocal; // return; // } //} public void setCriteriaMethod(MyFilterData.CRITERIA_METHOD method) { switch (method) { case MyFilterData.CRITERIA_METHOD.ABSOLUTE: this.criteria = method; return; case MyFilterData.CRITERIA_METHOD.SQUARE: this.criteria = method; return; } }
private void radioButtonCriteria_CheckedChanged(object sender, EventArgs e) { RadioButton here = (RadioButton)sender; if (here.Checked) { switch (here.Name) { case "radioButtonSQ": criteria = MyFilterData.CRITERIA_METHOD.SQUARE; break; case "radioButtonAB": criteria = MyFilterData.CRITERIA_METHOD.ABSOLUTE; break; } if (compresser != null) { compresser.setCriteriaMethod(criteria); } } }