I have the following simple function:
private void EnableDisable941ScheduleBButton()
{
if (this._uosDepositorFrequency.Value != null)
this._btnScheduleB.Enabled = ((int)this._uosDepositorFrequency.Value == 0);
}
It's a member of a Winform class which I'm trying to split into a passive view and presenter. It's obvious there is business logic tangled together with UI wiring. I'm just not sure of the best way to separate them.
To give a little context, the function is called from three locations in the form. _uosDepositorFrequency is a radiobutton group with only two buttons.
Any ideas?
Update:
Ok, maybe it isn't as obvious as I thought. The business rule states that if an employer makes semiweekly deposits (_uosDepositorFrequency.Value = 0) they are required to fill out a Schedule B form.