public void LockDown() { bool canCreatePermanentNotes = securityManager.CanCreatePermanentNotes(); bool canCreateClientNotes = securityManager.CanCreateClientNotes(); bool canCreateCustomerNotes = securityManager.CanCreateCustomerNotes(); bool canOnlyCreatePermanentNotes = canCreatePermanentNotes && !canCreateClientNotes && !canCreateCustomerNotes; // TODO: Refactor this view.TogglePermanentNoteCheckBox(canCreatePermanentNotes && !canOnlyCreatePermanentNotes); view.ToggleNoteDescriptors(!canOnlyCreatePermanentNotes); view.ToggleNextCallDueDate(securityManager.CanEditNextCallDueDate()); }