StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Use of ISite
Use of ISite
Post Reply
Like
0
Use of ISite
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Trent Taylor
Trent Taylor
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
I generally don't like to do that but prefer to define it explicitly, that way you always know exactly what is happening. But this is more of a personal preference thing.
Reply
Like
0
Bill Cunnien
Bill Cunnien
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 785,
Visits: 3.6K
Ok...that'll give me some things to study (components and how they live in their environment, next on Nat Geo!)
I am still wondering whether the syntax,
public System.ComponentModel.ISite Site { get; set; }
, would still work. I have it setup in my test case. Seems to be running just fine.
Reply
Like
0
Trent Taylor
Trent Taylor
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
This is added from the IComponent implementation. The components container uses this site reference to know what components have been added to any parent component container. This site reference is set through the designers and is required for proper component implementation. If you'll notice, when you add an action to any form, that action shows up in the component area of the form. This is how that is accomplished.
Reply
Like
0
Bill Cunnien
Bill Cunnien
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 785,
Visits: 3.6K
(bump)
Reply
Like
0
Bill Cunnien
Bill Cunnien
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 785,
Visits: 3.6K
Project: StrataFlix.UI
Folder: Items and Collections
Class: ActionLinkMenuItem
Reply
Like
0
Greg McGuffey
Greg McGuffey
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 2K,
Visits: 6.6K
Bill,
Where is this code? It looks familiar but I can't remember which class its in.
Reply
Like
0
Bill Cunnien
Bill Cunnien
posted 14 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 785,
Visits: 3.6K
I am not quite able to determine what the purpose of the following code is:
private ISite _Site;
[Browsable(false)]
public System.ComponentModel.ISite Site
{
get
{
return this._Site;
}
set
{
this._Site = value;
}
}
Since the _Site variable is private, and nothing in the class does anything with it, couldn't we do something like this:
[Browsable(false)]
public System.ComponentModel.ISite Site { get; set; }
My next question is, what outside of the class uses this property? I may find it as I am working on this...I'll post here as soon as I do.
Thanks,
Bill
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search