Cassie Mod

Cassie Mod

  • 1.5k
  • 488
  • 48.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)
  1. public void SetFirstReminderSettings(bool result)  
  2. {  
  3.     if (result)  
  4.     {  
  5.        firstReminderSendOnResultLabel. vissible = true;  
  6.        sendFirstReminderbutton.enables = false;  
  7.     }  
  8.     else  
  9.     {  
  10.        sendFirstReminderButton.enables = true;  
  11.       SendSecondReminderButton.enabled = false;  
  12.       sendWarningButton.enables = false;  
  13.    }  
  14. }  

Answers (2)