Hi guys,
I have to classes on called ManagerForm (boundary/view class) and ViewForm (a controller class)
Public Class ManagerForm
Public Salary As Double
Public Bonus As Double
Public Allowance As Double
Public Sub DoSomething()
Dim Total=Salary+Bonus
End Sub
End Class
Public Class ViewForm
Public Sub DoSomething()
View(ManagerForm)
End Sub
End Class
These classes are written in pseudo code because I am not familiar with the "real" syntax yet.
Basically the problem is that the database stores Salary,Bonus and Allowances for 2006 and 2007 and whatever the
user has selected in the DropDownList i.e. 2006 or 2007 should be displayed on the website.
For Example: If the User selected 2006 in the DropDownList the Label will display
all three figures for 2006.
How do I do this?
I have to classes on called ManagerForm (boundary/view class) and ViewForm (a controller class)
Public Class ManagerForm
Public Salary As Double
Public Bonus As Double
Public Allowance As Double
Public Sub DoSomething()
Dim Total=Salary+Bonus
End Sub
End Class
Public Class ViewForm
Public Sub DoSomething()
View(ManagerForm)
End Sub
End Class
These classes are written in pseudo code because I am not familiar with the "real" syntax yet.
Basically the problem is that the database stores Salary,Bonus and Allowances for 2006 and 2007 and whatever the
user has selected in the DropDownList i.e. 2006 or 2007 should be displayed on the website.
For Example: If the User selected 2006 in the DropDownList the Label will display
all three figures for 2006.
How do I do this?