P
Paul
Hi,
I'm curious how others would deal with something I'm building.
The app itself is a form of diary; it allows the organisation of diary
entries and a number of other data types.
Each diary entry is listed under its title, and double clicking brings
up the full entry and options for editing.
Each entry and associated option is stored in a diary object instance.
I'm wondering how best to store the persistent data. One option is
to a file on the users HDD. Each time the app is opened the file is
read and all diary instances are recreated. But I'm worried that
storing every diary instance in memory will create an ever increasing
memory footprint.
The other option I've thought of is creating a db file on the users
HDD, and only reading what information is needed. For example, when a
list of diary entries is shown, just the title fields are read into
memory. On double clicking a title, the entire record is fetched and an
instance of diary object created.
Which one of these would be the best solution? Or is there something
else more suited?
Another quick question: Are there any pre-made controls for the
richtextbox control? E.g. bold, italic, font type, colour buttons etc?
Or do all have to be created?
Any help would be appreciated!
Paul
I'm curious how others would deal with something I'm building.
The app itself is a form of diary; it allows the organisation of diary
entries and a number of other data types.
Each diary entry is listed under its title, and double clicking brings
up the full entry and options for editing.
Each entry and associated option is stored in a diary object instance.
I'm wondering how best to store the persistent data. One option is
to a file on the users HDD. Each time the app is opened the file is
read and all diary instances are recreated. But I'm worried that
storing every diary instance in memory will create an ever increasing
memory footprint.
The other option I've thought of is creating a db file on the users
HDD, and only reading what information is needed. For example, when a
list of diary entries is shown, just the title fields are read into
memory. On double clicking a title, the entire record is fetched and an
instance of diary object created.
Which one of these would be the best solution? Or is there something
else more suited?
Another quick question: Are there any pre-made controls for the
richtextbox control? E.g. bold, italic, font type, colour buttons etc?
Or do all have to be created?
Any help would be appreciated!
Paul