Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
how to write the method with less code
Cassie Mod
Oct 10 2017 5:58 AM
148
Reply
I know it is a kind of stupid question but I still have to ask.
Is there a way to write this methods cleaner ?? ( less code)
public
void
SetFirstReminderSettings(
bool
result)
{
if
(result)
{
firstReminderSendOnResultLabel. vissible =
true
;
sendFirstReminderbutton.enables =
false
;
}
else
{
sendFirstReminderButton.enables =
true
;
SendSecondReminderButton.enabled =
false
;
sendWarningButton.enables =
false
;
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
How To Integrate SMS API To my ASP.Net Web application
How to connect TFS in Visaul studio 2005 ?