StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Generic propertyExpand / Collapse
Author
Message
Posted 06/13/2007 9:49:18 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 5:08:05 AM
Posts: 496, Visits: 1,836
Hi,
I am using DevExpress ribbon control as my form toolbar. I want to implement the behavour like SF maintenance toolstrip to it. In order to reuse my code in casde i want to use other control as my maintenance toolbar in the future, I planned to write an controller/behavour class to control the logic.

My current problem is, I need some way to access those button (ribbon control bar item/maintenance toolstrip button) in order to disable/enable them. I was thinking to have property to store object reference of each button accordingly. I used "control" as my property type. However, I might not able to access certain property that exist in toolbar button such as tooltiptext if I do so.

Anyway I can "set" tyoe to property during runtime? I tried to take a look at generic, but I only see it work for List. Is it?

Ady ideas?

Thank you
Post #9542
Posted 06/13/2007 5:45:04 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 5:45:18 PM
Posts: 4,899, Visits: 4,882
Well, I am not totally sure I understand what you are trying to do, but I would think that handling form events would be the way to go rather than storing off an object reference.  This will ensure encapsulation as well as reusability.  If you look, you will see that the SF forms have many of the same events as the BOs....they just cover all of the BOs on the form.  Also, you will want to call the Save(), Add(), etc. on the SF form to get the same behaviour as the MaintenanceFormToolstrip.  Just a few ideas.
Post #9551
« 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 8:10am

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.094. 11 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.