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;
- }
- }

Ankit SharmaRank #141 · 16.1K reputationPosted Oct 10, 2017, 2:40 AM EDT
Ram NunnaRank #8,962 · 213 reputationPosted Oct 10, 2017, 3:26 AM EDT