Click here to Skip to main content
15,894,343 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
Questionmaking a new file extension Pin
moonshaddow2-Apr-09 17:27
moonshaddow2-Apr-09 17:27 
AnswerRe: making a new file extension Pin
Roger Wright2-Apr-09 19:23
professionalRoger Wright2-Apr-09 19:23 
GeneralRe: making a new file extension Pin
moonshaddow2-Apr-09 19:46
moonshaddow2-Apr-09 19:46 
GeneralRe: making a new file extension Pin
dybs15-Apr-09 14:41
dybs15-Apr-09 14:41 
GeneralRe: making a new file extension Pin
moonshaddow21-Apr-09 16:04
moonshaddow21-Apr-09 16:04 
GeneralRe: making a new file extension Pin
jmussetter4-May-09 19:09
jmussetter4-May-09 19:09 
GeneralRe: making a new file extension Pin
moonshaddow4-May-09 19:15
moonshaddow4-May-09 19:15 
QuestionForms vs Dialogs - A Question of Architecture Pin
Roger Wright1-Apr-09 19:43
professionalRoger Wright1-Apr-09 19:43 
After a break to clear my head and read some more, I'm back to trying to develop a simple database program for my own use at work. Rather than continue with my previous project, I'm starting fresh.

The problem - track the purchase, installation, maintenance, and movement of three types of equipment for a power company. Simple, right? I thought so, but maybe not simple enough for me yet.

One approach I tried was to have the user select one of the main functions - Add, Edit, Move, Service - from the main form, then use hide/show to move to a subform for that function. My thought at the time was to then use a string of dialog boxes to walk the user through the selection of the target equipment, enter the data required (it changes depending on the equipment type), then return the data to the subform for updating the database. In my thinking, that would make it easy to simply "Add another?" from the base subform. That got rather complicated, and I got lost.

The next shot was to create forms for each function and equipment type, then walk through them depending on user selections, and updating the database through the final form in each sequence. Not only is that wasteful (having all those forms lurking about whether needed or not) but it just strikes me as awful design. There ought to be a single point of control for the data access, a separate layer that is common to all functions. I just have no idea how to implement it.

At the moment I have a nice Main form with a side-panel menu, a .mdb database file with sample data already loaded, and a very attractive company logo in the top left corner. I also have a nagging feeling that I'm missing something important in a conceptual way, something that hours of studying MSDN and C# programming books isn't helping. The simplistic examples used in most books aren't very useful for learning how to do real world tasks - sample programs have one Form, dialogs do only one thing, then close, etc...

I've found that what I can learn from three or four helpful posts here usually exceeds what I can glean from a month or more of study, so I thought I'd give it a shot. Last time I did I received several very helpful tips that helped me a lot, and I appreciate them all. I also got a few snide, insulting comments from a few who are very active, but whose histories show that they've never once posted anything else. I've been here a long time, and I'm immune to those.

Thanks, in advance, for any helpful suggestions as to how I should structure this solution to make it as painless for me - a tyro - and as efficient as is practical for a beginner. I'm eager to learn, and it's going to make my job a hell of a lot easier if I can get this working. I'm doing it on paper now, and it's a time vampire.

"A Journey of a Thousand Rest Stops Begins with a Single Movement"

AnswerRe: Forms vs Dialogs - A Question of Architecture Pin
led mike2-Apr-09 8:45
led mike2-Apr-09 8:45 
GeneralRe: Forms vs Dialogs - A Question of Architecture Pin
Roger Wright2-Apr-09 17:52
professionalRoger Wright2-Apr-09 17:52 
GeneralRe: Forms vs Dialogs - A Question of Architecture Pin
led mike3-Apr-09 5:27
led mike3-Apr-09 5:27 
AnswerRe: Forms vs Dialogs - A Question of Architecture Pin
dealon2-Apr-09 20:50
dealon2-Apr-09 20:50 
QuestionClass methods Pin
CrimeanTurtle200831-Mar-09 14:01
CrimeanTurtle200831-Mar-09 14:01 
AnswerRe: Class methods Pin
led mike2-Apr-09 8:22
led mike2-Apr-09 8:22 
QuestionOOP Programming, Two approachs for a problem Pin
Quake2Player22-Mar-09 16:52
Quake2Player22-Mar-09 16:52 
AnswerRe: OOP Programming, Two approachs for a problem Pin
PIEBALDconsult22-Mar-09 17:45
mvePIEBALDconsult22-Mar-09 17:45 
AnswerRe: OOP Programming, Two approachs for a problem Pin
Jonathan Davies23-Mar-09 3:13
Jonathan Davies23-Mar-09 3:13 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Quake2Player23-Mar-09 6:53
Quake2Player23-Mar-09 6:53 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Jonathan Davies23-Mar-09 8:25
Jonathan Davies23-Mar-09 8:25 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Quake2Player23-Mar-09 8:42
Quake2Player23-Mar-09 8:42 
GeneralRe: OOP Programming, Two approachs for a problem Pin
led mike23-Mar-09 8:31
led mike23-Mar-09 8:31 
AnswerRe: OOP Programming, Two approachs for a problem Pin
Quake2Player24-Mar-09 7:31
Quake2Player24-Mar-09 7:31 
GeneralRe: OOP Programming, Two approachs for a problem Pin
Jonathan Davies24-Mar-09 8:51
Jonathan Davies24-Mar-09 8:51 
Questioncomposite pattern serializing Pin
Jarno Burger20-Mar-09 13:18
Jarno Burger20-Mar-09 13:18 
AnswerRe: composite pattern serializing Pin
Jonathan Davies22-Mar-09 5:14
Jonathan Davies22-Mar-09 5:14 

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.