PC Review


Reply
Thread Tools Rate Thread

Bear with me!

 
 
rayreeves
Guest
Posts: n/a
 
      16th Feb 2007
In C# I can easily produce a dialog box to amass a slew of input data from
the user but how should I convey this data to my Application? Should I
declare it as static data in the Form1 class, even though it has nothing to
do with Form1, and try to access it from code elsewhere, or should I create
a structure argument with everything in it and pass it around, or what?

Ray Reeves


 
Reply With Quote
 
 
 
 
Fred Mellender
Guest
Posts: n/a
 
      16th Feb 2007
1. Design the classes of your application. Some of these will have member
data that originate from the dialog.

2. Have your Form1 invoke some constructor on these classes to make
instance(s) using the data retrieved via the dialog.

3. Then the Form1 should invoke member function(s) on each instance to
continue your application logic.



"rayreeves (E-Mail Removed)>" <ray<mond> wrote in message
news:IkpBh.371$SR.284@trndny06...
> In C# I can easily produce a dialog box to amass a slew of input data from
> the user but how should I convey this data to my Application? Should I
> declare it as static data in the Form1 class, even though it has nothing
> to do with Form1, and try to access it from code elsewhere, or should I
> create a structure argument with everything in it and pass it around, or
> what?
>
> Ray Reeves
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Did the bear eat the dog ? Abarbarian General Discussion 2 5th Jan 2011 09:33 PM
Interesting - Is PC BUTTS impersonating PA Bear or is PA Bear also PC BUTTS? Leythos Windows XP General 33 26th Mar 2009 08:44 AM
Please bear with me Mick Murphy Windows Vista General Discussion 6 28th Aug 2008 06:18 AM
PA bear Greg Windows XP Internet Explorer 6 2nd May 2004 05:33 AM
Thanx to Pa Bear ... RJK Windows XP General 0 12th Jan 2004 11:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:21 AM.