TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Cassie Mod
NA
488
70.1k
how to write the method with less code
Oct 10 2017 5:58 AM
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
;
}
}
Reply
Answers (
2
)
How To Integrate SMS API To my ASP.Net Web application
How to connect TFS in Visaul studio 2005 ?