StrataFrame base class
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



StrataFrame base classExpand / Collapse
Author
Message
Posted 01/28/2008 2:38:39 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:55:30 PM
Posts: 128, Visits: 386
In our project, All forms are based on Devexpress XtraForm. Now, Strataframe forms requires to be inhereted from  

MicroFour.StrataFrame.UI.Windows.Forms.StandardForm.  C# does not support Multiple inheretence. At first look, Source code will be changed to be inherited from Devexpress XtraForm. Does it works properly ? Any ideas , Expreriences ?

Where is the source code location to be modified ? 

Post #13761
Posted 01/28/2008 9:37:52 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:36:54 PM
Posts: 4,200, Visits: 4,251
The StandardForm is not eh root for, it is the BaseForm which is in MicroFour StrataFrame Base.  This form houses all of the required logic by the framework.  You just need to create your own BaseForm and inherit off of the XtraForm and add all of the code from our BaseForm into your custom form.  This is really the only way to achieve this.
Post #13767
Posted 01/29/2008 1:55:46 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:55:30 PM
Posts: 128, Visits: 386
BaseForm is in  MicroFour Strataframe Business project. I will copy BaseForm as DevxBaseForm and compile and use StandartForm. Are there another places to be modified ?
Post #13810
Posted 01/29/2008 2:01:09 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:55:30 PM
Posts: 128, Visits: 386
Base form is inhereted from Windows.Forms.Form. Why do not we change Windows.Form to Devexpress Form ?
Post #13812
Posted 01/29/2008 9:00:30 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:36:54 PM
Posts: 4,200, Visits: 4,251
Base form is inhereted from Windows.Forms.Form. Why do not we change Windows.Form to Devexpress Form ?

This would require that everyone of the StrataFrame developers purchase a copy of DevExpress...most of our developers do not use DevExpress nor do we want to have a framework the depends on a 3rd party entity.  You are correct though, the BaseForm is in the Business assembly...sorry.

Post #13815
Posted 02/04/2008 3:58:00 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 10:55:30 PM
Posts: 128, Visits: 386
I've changed the BaseForm.vb

as

Public Class BaseForm
        Inherits MyBaseForm
        Implements MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl

MyBaseForm is inhereted from Devexpress XtraForm.

I 've got error message below in design time when strataframe objects were dropped on my form. My form is based on StandartForm which is based on my changed BaseForm.

"The object that the business object has been dropped on must be implement
MicroFour.strataFrame.UI.Windows.Forms.IcontainerControl"

Post #13975
Posted 02/05/2008 10:26:37 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 9:36:54 PM
Posts: 4,200, Visits: 4,251
This is a cross-post.  Refer here http://forum.strataframe.net/FindPost14003.aspx.
Post #14013
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 1:18am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.