Click here to Skip to main content
15,916,463 members
Home / Discussions / C#
   

C#

 
AnswerRe: Question: how to access main Form component from another class ? Pin
DaveyM6910-Jan-09 23:47
professionalDaveyM6910-Jan-09 23:47 
GeneralRe: Question: how to access main Form component from another class ? Pin
Mohammemd11-Jan-09 7:40
Mohammemd11-Jan-09 7:40 
AnswerRe: Question: how to access main Form component from another class ? Pin
DaveyM6911-Jan-09 0:13
professionalDaveyM6911-Jan-09 0:13 
GeneralRe: Question: how to access main Form component from another class ? Pin
Mohammemd11-Jan-09 7:42
Mohammemd11-Jan-09 7:42 
AnswerRe: Question: how to access main Form component from another class ? Pin
DaveyM6911-Jan-09 0:47
professionalDaveyM6911-Jan-09 0:47 
GeneralRe: Question: how to access main Form component from another class ? Pin
Mohammemd11-Jan-09 7:47
Mohammemd11-Jan-09 7:47 
GeneralRe: Question: how to access main Form component from another class ? Pin
DaveyM6911-Jan-09 8:29
professionalDaveyM6911-Jan-09 8:29 
GeneralRe: Question: how to access main Form component from another class ? Pin
Wendelius11-Jan-09 12:01
mentorWendelius11-Jan-09 12:01 
As I mentioned in my post, I didn't like the idea that the logic is scattered throughout the application and the combining element is a form (main form or any other). So I fully agree with you that it would be benefitial to have separate controller class and the form is used only for viewing.

So basically both main form and the controller may be singletons, although I think there would be a point if controller is even static, if possible. Do you see any downsides on that?

And also you're definitely right when saying that it would be more OO Smile | :)

Mika

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Question: how to access main Form component from another class ? Pin
Mohammemd11-Jan-09 18:32
Mohammemd11-Jan-09 18:32 
AnswerRe: Question: how to access main Form component from another class ? Pin
N a v a n e e t h11-Jan-09 21:45
N a v a n e e t h11-Jan-09 21:45 
QuestionHow should I design my project to support future plug-ins? Pin
Artmansoft10-Jan-09 19:47
Artmansoft10-Jan-09 19:47 
AnswerRe: How should I design my project to support future plug-ins? Pin
wjp_auhtm11-Jan-09 1:14
wjp_auhtm11-Jan-09 1:14 
GeneralRe: How should I design my project to support future plug-ins? Pin
Artmansoft11-Jan-09 1:50
Artmansoft11-Jan-09 1:50 
AnswerRe: How should I design my project to support future plug-ins? Pin
wjp_auhtm11-Jan-09 5:05
wjp_auhtm11-Jan-09 5:05 
GeneralRe: How should I design my project to support future plug-ins? Pin
Artmansoft11-Jan-09 18:17
Artmansoft11-Jan-09 18:17 
AnswerRe: How should I design my project to support future plug-ins? Pin
User 665811-Jan-09 2:25
User 665811-Jan-09 2:25 
GeneralRe: How should I design my project to support future plug-ins? Pin
Artmansoft11-Jan-09 18:19
Artmansoft11-Jan-09 18:19 
AnswerRe: How should I design my project to support future plug-ins? Pin
Luis Alonso Ramos11-Jan-09 9:33
Luis Alonso Ramos11-Jan-09 9:33 
GeneralRe: How should I design my project to support future plug-ins? Pin
Artmansoft11-Jan-09 18:19
Artmansoft11-Jan-09 18:19 
QuestionList view in C# .net 2003 Pin
ananthvivek10-Jan-09 18:20
ananthvivek10-Jan-09 18:20 
AnswerRe: List view in C# .net 2003 Pin
ananthvivek10-Jan-09 19:57
ananthvivek10-Jan-09 19:57 
GeneralRe: List view in C# .net 2003 Pin
Wendelius10-Jan-09 21:13
mentorWendelius10-Jan-09 21:13 
GeneralRe: List view in C# .net 2003 Pin
Luis Alonso Ramos11-Jan-09 9:28
Luis Alonso Ramos11-Jan-09 9:28 
GeneralRe: List view in C# .net 2003 Pin
ananthvivek12-Jan-09 21:01
ananthvivek12-Jan-09 21:01 
GeneralRe: List view in C# .net 2003 Pin
Luis Alonso Ramos13-Jan-09 4:21
Luis Alonso Ramos13-Jan-09 4:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.