Re: Different Approaches to Saving settings: Which is better?
- From: "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Fri, 17 Feb 2006 09:33:46 +0100
Martin,
Both not, I keep this forever as lead for this kind of question.
Everything that affects the computer and belongs to that Registry, in my
view belong the form sizes than to the registry which can be used to set the
properties before the show and back to the registry before the close.
Everything that belongs to the application would in my opinion be set in the
config (xml file). To be transportable.
Just my thought,
Cor
"Martin the Third" <martin3warrior@xxxxxxxxx> schreef in bericht
news:1140143414.713370.320120@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Okay, I have a program that has many optional windows. Its not mdi or
anything, it just has alot of windows that you can choose to have that
would add extra features to the program.
Now, I need to have the properties of these windows to stay when the
user exits (which windows are opened/closed, etc). Ive already set it
up so that it reads and writes from an xml file to handle all this.
The problem is that the variables I have set up dont get told when to
change (Id go into greater detail, but it's irrelevant). Anyway, the
two options I have to fix this problem are as follows:
1) Send strings in the form close events to the main window, and change
the variables that affect the settings. Then write to the xml file when
the entire program is exited with a subroutine.
2) Make the read/write xml subs part of a seperate class, and write to
the xml file any time a window is opened or closed.
Which would be more efficient?
Thanks in advance,
-m3
.
- References:
- Different Approaches to Saving settings: Which is better?
- From: Martin the Third
- Different Approaches to Saving settings: Which is better?
- Prev by Date: Re: Crash in VB.NET 2005
- Next by Date: Re: Least Cost Formulations and Linear Programming
- Previous by thread: Re: Different Approaches to Saving settings: Which is better?
- Next by thread: ANN: SkinEngine 1.05 just released
- Index(es):
Relevant Pages
|