Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    Button::SetVisible (...) Commented Sep 9, 2010 at 15:37
  • Not that I like this style either... but another choice might be ShouldIShowOrHideButton() Commented Sep 9, 2010 at 15:39
  • One problem with this approach that may be the cause of confusion is that you have business / domain logic intermixed within UI logic. What is chkSomeSetting representing and why must day be less than 8. If this was wrapped up inside a nicely named function it would explain what the check meant and return a bool. That function could then be incorporated into the UI either directly or via a view model. Commented Sep 9, 2010 at 15:55