On Thu, Aug 18, 2011 at 4:07 PM, tamasu <[email protected]> wrote:
> Hi,
>
> I have a form, through which I have instantiated an array of objects
> of a class called resource. I am able to access all its methods from
> the said form. I have also instantiated another object from a class
> called schedule under the same main form. Each resource object
> contains an array used to store a number of parameters. These
> parameters need to be made available for the object schedule however I
> have encountered a dilemma. As per normal good programming practice
> the core code is separated from the user interface code and therefore
> the code is to be encapsulated in the said classes. But how can these
> two classes (instantiated in the main form) can pass such information
> between each other?
------------

Does Schedule have a collection type for Resource?  I see Schedule
needing 1 or more Resources to support the type of Event that Schedule
is.

Schedule s = new Schedule()

s.Date=DateTime.Now
s.Type="Meeting"
List<Resource> R = new List<Resource>()
//create the list of people invited
for loop
{
Resource r = new Resource()
r.Name="foo"
R.Add(r)
}
s.Resources = R


-- 
Stephen Russell

Unified Health Services
60 Germantown Court
Suite 220
Cordova, TN 38018

Telephone: 888.510.2667

901.246-0159 cell

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to