public override bool DoFillWork(object propertyAndCategory) { string[] values = propertyAndCategory as string[]; if (values == null || values.Length != 2) { return(false); } bool result = ApiSetter.CheckRadioButton(_category, values[0]) && ApiSetter.CheckRadioButton(_property, values[1]); return(result && ApiSetter.ClickButton(_okButton, base.HWnd, ConfirmInfoTip, null)); }
public override bool DoFillWork(object state) { bool result = true; FillValue3C fillValue = state as FillValue3C; if (fillValue == null || fillValue.Value == null || fillValue.Separators == null || fillValue.Separators.Length < 1) { return(false); } string[] values = fillValue.Value.Split(fillValue.Separators[0]); if (values != null) { for (int i = 0; i < radionPanels.Count && values.Length > i; i++) { result = result && ApiSetter.CheckRadioButton(radionPanels[i], values[i]); } } return(result && ApiSetter.ClickButton(okButton, base.HWnd, null, null)); }