trouble converting VB IWebBusinessBindable to C#


Author
Message
Govinda Berrio
Govinda Berrio
StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)StrataFrame User (240 reputation)
Group: StrataFrame Users
Posts: 94, Visits: 481
Hi all,



I'm trying to implement the IWebBusinessBindable and IWebListControl with a Telerik RadComboBox. I think I'm on the right track by just copying the code from Strataframe source code, but I'm stuck the conversion of the VB code C#. I ran the code through an online VB-> C# converter and most of it compiles fine except for the "Events" section where the IWebListControl event ListPopulating needs to be implement. The C# code that the converter generates doesn't compile.



Here's the IWebListControl interface snippet

Event ListPopulating(ByVal e As ListPopulatingEventArgs)




Here's how Strataframe implements it in Microfour.Strataframe.UI.Web.DropDownList

Public Event ListPopulating(ByVal e As ListPopulatingEventArgs) Implements IWebListControl.ListPopulating



Friend Sub RaiseListPopulatingEvent(ByVal e As ListPopulatingEventArgs) Implements IWebListControl.RaiseListPopulatingEvent

RaiseEvent ListPopulating(e)

End Sub




Here's the converter generated code, which doesn't compile



public event IWebListControl.ListPopulating;



internal void IWebListControl.RaiseListPopulatingEvent(ListPopulatingEventArgs e)

{

if (ListPopulating != null) {

ListPopulating(e);

}

}




If anyone could shed some light on this, it would be very helpful as I'm not that experienced in .net development.



Thank You,

Govinda
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search