| | | StrataFrame User
       
Group: Forum Members Last Login: 02/04/2008 8:43:02 AM Posts: 176, Visits: 1,519 |
| Here is the code from the help file:Public WithEvents MyBusinessObject1 As MyBusinessObject How do declare this in c#? public MyBusinessObject MyBusinessObject1; |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 10/21/2008 9:20:58 AM Posts: 2,685, Visits: 1,887 |
| Yes, that's how you would define it...
The WithEvents keyword in VB allows you to have Handles on methods to handle events, but since C# doesn't allow you to do that, there is no WithEvents.
www.bungie.net |
| | | | StrataFrame User
       
Group: Forum Members Last Login: 02/04/2008 8:43:02 AM Posts: 176, Visits: 1,519 |
| | When I am trying to set the businessobject property of a text box on a new page the BO is not listed. What should I look for? I have added my BO decleration to the ApplicationBasePage.cs file in the Business Object Definitions region. Thanks |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 10/21/2008 9:20:58 AM Posts: 2,685, Visits: 1,887 |
| You'll have to rebuild your project before the new business object you've declared will be visible. We've had some issues the the type resolution and finally got the type editors switched over to using the VsTypeResolutionService. I'm not sure if you have that update, so if the business object still doesn't show up after you rebuild, then let me know, and I'll shoot you the update.
www.bungie.net |
| | | | StrataFrame User
       
Group: Forum Members Last Login: 02/04/2008 8:43:02 AM Posts: 176, Visits: 1,519 |
| | It still isn't there. Send the udpate when ever you have some time, I know things must be really busy around there since the release of the framework. Scott |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 10/21/2008 9:20:58 AM Posts: 2,685, Visits: 1,887 |
| Aye, I'll get it to you ASAP, but you might have to wait until Monday, when we plan to release the OLE DB support...
www.bungie.net |
| | | | StrataFrame User
       
Group: Forum Members Last Login: 02/04/2008 8:43:02 AM Posts: 176, Visits: 1,519 |
| | Looking forward to Monday. Thanks for the udpate. |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: 10/21/2008 9:20:58 AM Posts: 2,685, Visits: 1,887 |
| The declaration of the business objects in the ApplicationBasePage.cs works now... however, you need to declare it as a property, so:
private MyBOClass _MyBO;
public MyBOClass MyBO
{
get
{
return this._MyBO;
}
set
{
this._MyBO = value;
}
}
Then, just build and it will be there as a possible option for the data source of bindable controls.
www.bungie.net |
| |
|
|