Update applications/randomuser/randomuser_mvc.ring - Better Code!
@@ -53,6 +53,11 @@ class RandomUserView from WindowsViewParent
}
+ func Display oModel
+ DisplayTheData(oModel)
+ StyleBasedOnGender(oModel)
+ DisplayThePhoto(oModel)
+
func DisplayTheData oModel
oNameLabel.setText(oModel.cFirstName + " " + oModel.cLastName)
@@ -84,9 +89,7 @@ class RandomUserController from WindowsControllerParent
func getUserData
DownloadUserData()
- oView.DisplayTheData(oModel)
- oView.StyleBasedOnGender(oModel)
- oView.DisplayThePhoto(oModel)
+ oView.Display(oModel)
func DownloadUserData
