Inherited Browse Dialog problem


Author
Message
Paul Chase
Paul Chase
Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
Hi ,

My browse dialogs inherit's from my base class browse dialog that inherits from the SF browse dialog. Serialization doesn't seem to work anymore. Now if i make any change to my browse dialog via the property every single stitch of code the was serialized in the init component is "smoked"... and obviusly the property i meant to change is not persisted either. Before I start ripping into this did something change since 1.60 that may cause this?

Thanks

Replies
Paul Chase
Paul Chase
Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
I see what is going on. Because my browse dialog is inheriting from my base browse dialog which then inherits from SF.BrowseDialog the IsInheritedBrowseDialog fuction is returning false,

overriding that function and everythign is happy.

Paul

Paul Chase
Paul Chase
Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
I am not sure why IsSubclassof (BrowseDialog) returns false though. I would think that because it ultimatly is a sublclass of browsedialog it should work shouldnt it?

I am set up like this/

Public Class AL_BrowseDialog'--My Base Class Browse Dialog

Inherits MicroFour.StrataFrame.UI.Windows.Forms.BrowseDialog

and

Namespace BrowseDialogs

Public Class CustomerBrowseDialog

Inherits Base.BrowseDialogs.AL_BrowseDialog

 No big deal as overriding the function works but just currious

Paul

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I would think that because it ultimatly is a sublclass of browsedialog it should work shouldnt it?

No....in fact, I spent a lot of time yesterday trying to get a generic type to work with the ITypeDiscovery interface and the IsSubClassOf.  Since you are two deep, the IsSubClassOf may not work since your browsedialog actually is a direct subclass of your base browsedialog.  You can make it work by "jacking" with some of the options and you may even play with the Type.ReflectionOnlyGetType to see if it returns differently.  But this can get confusing with there are multiple inheritances.

Paul Chase
Paul Chase
Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)Advanced StrataFrame User (580 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
Yeah that's about what I figured. Thanks for the info.. I am sure I will run into that again
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