Sorry but I Really need this information!
In the Documentation has this sample:
Private Sub ListView1_RowPopulating( _
ByVal e As MicroFour.StrataFrame.UI.Windows.Forms.RowPopulatingEventArgs) _
Handles ListView1.RowPopulating
'-- Establish locals
Dim loBO As CustomersBO
'-- Get the reference to the business object
loBO = e.BusinessObject
If loBO.cust_gender = 0 Then
'-- The customer is a male, set the background color to blue
' and set the image key to the boy icon
e.RowBackColor = Drawing.Color.LightBlue
e.ImageKey = "boy.ico"
Else
'-- The customer is a girl, set the background color to pink
' and set the image key to the girl icon
e.RowBackColor = Drawing.Color.Pink
e.ImageKey = "girl.ico"
End If
'-- The fourth column has been configured to PopulateThroughEvent
If loBO.cust_email.Length > 0 Then
'-- We have an email in the record
e.Values(3).DisplayValue = loBO.cust_email
Else
'-- We don't have an email for this customer
e.Values(3).DisplayValue = "unavailable"
End If
End Sub
and I translated to c#:
private void listView1_RowPopulating(MicroFour.StrataFrame.UI.Windows.Forms.RowPopulatingEventArgs e)
{
MesasBo mesas = new MesasBo();
mesas = e.BusinessObject;
}
and I get this error:
Error 10 Cannot implicitly convert type 'MicroFour.StrataFrame.Business.BusinessLayer' to 'M2BusinessObjectLibrary.MesasBo'. An explicit conversion exists (are you missing a cast?) D:\Projetos\Business Enterprise\M2FoodService\Form1.cs 65 24 M2FoodService
I need a quick solution for this problem.