ข้างล่างคือ the view source file.

• The
setLight function จะเซ็ต the visibility ของ the
lightON image. The visibility จะเปลี่ยนขึ้นอยู่กับ the data ที่รับจาก
the presenter.
• หลังจากการเปลี่ยน the visibility, เราต้อง invalidate the image เพื่อให้การเปลี่ยนมีผล.
• ก่อนอื่น The
setADC function จะแปลงค่า, ที่รับจาก the presenter, ไปเป็น the characters.
• เราจะ invalidate the
textArea อีกครั้งเพื่อให้ค่าเหล่านี้ถูกแสดงบน the UI.
โปรดทราบว่าฟังชั่นเหล่านี้ต้องถูกกำหนดไว้ก่อนแล้วใน the Screen1View header file.