Click here to Skip to main content
15,886,199 members
Home / Discussions / C#
   

C#

 
AnswerRe: return string Pin
sskset14-Jul-09 7:52
sskset14-Jul-09 7:52 
Questionregarding grab image from mobile camera?? Pin
Tridip Bhattacharjee14-Jul-09 2:34
professionalTridip Bhattacharjee14-Jul-09 2:34 
AnswerRe: regarding grab image from mobile camera?? Pin
DoctorMick14-Jul-09 5:19
DoctorMick14-Jul-09 5:19 
AnswerRe: regarding grab image from mobile camera?? Pin
Simon P Stevens14-Jul-09 5:25
Simon P Stevens14-Jul-09 5:25 
AnswerRe: regarding grab image from mobile camera?? Pin
Giorgi Dalakishvili14-Jul-09 6:18
mentorGiorgi Dalakishvili14-Jul-09 6:18 
QuestionLogin Problem with CrystalReports Pin
Narendra Reddy Vajrala14-Jul-09 1:59
Narendra Reddy Vajrala14-Jul-09 1:59 
QuestionLogic behind... Something? Pin
Baeltazor14-Jul-09 1:18
Baeltazor14-Jul-09 1:18 
AnswerRe: Logic behind... Something? PinPopular
Luc Pattyn14-Jul-09 1:27
sitebuilderLuc Pattyn14-Jul-09 1:27 
Hi,

let me summarize that for you: you have a collection of objects (e,g, tab pages on a form), and these objects may or may not contain "dirty data" i.e. data that still needs to be saved, how to make sure it all gets saved?

This is what I do:
1. I give each object a bool dirty flag, which starts at false; gets set true whenever I change something to the object; and gets set false again when the object's content is either read from or written to permanent storage, such as a disk.

2. when I want to close the app, or close all the objects of the GUI, I enumerate the collection of objects, and for each dirty object, I ask the object to persist itself in any way fit; it is the object itself that either knows how to do that (because it holds the file path) or has to ask the user (because it does not know a file path yet).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 1:31
Baeltazor14-Jul-09 1:31 
GeneralRe: Logic behind... Something? Pin
Rajesh R Subramanian14-Jul-09 1:49
professionalRajesh R Subramanian14-Jul-09 1:49 
GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 1:51
Baeltazor14-Jul-09 1:51 
GeneralRe: Logic behind... Something? Pin
Luc Pattyn14-Jul-09 2:11
sitebuilderLuc Pattyn14-Jul-09 2:11 
GeneralRe: Logic behind... Something? Pin
OriginalGriff14-Jul-09 2:13
mveOriginalGriff14-Jul-09 2:13 
GeneralRe: Logic behind... Something? Pin
Luc Pattyn14-Jul-09 2:39
sitebuilderLuc Pattyn14-Jul-09 2:39 
GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 9:21
Baeltazor14-Jul-09 9:21 
AnswerRe: Logic behind... Something? Pin
musefan14-Jul-09 1:31
musefan14-Jul-09 1:31 
GeneralRe: Logic behind... Something? Pin
Baeltazor14-Jul-09 1:35
Baeltazor14-Jul-09 1:35 
Questionc# function for Image Compression Pin
GauravKP14-Jul-09 1:11
professionalGauravKP14-Jul-09 1:11 
AnswerRe: c# function for Image Compression Pin
Luc Pattyn14-Jul-09 1:14
sitebuilderLuc Pattyn14-Jul-09 1:14 
JokeRe: c# function for Image Compression Pin
musefan14-Jul-09 1:19
musefan14-Jul-09 1:19 
GeneralRe: c# function for Image Compression Pin
Luc Pattyn14-Jul-09 1:42
sitebuilderLuc Pattyn14-Jul-09 1:42 
GeneralRe: c# function for Image Compression Pin
musefan14-Jul-09 2:42
musefan14-Jul-09 2:42 
GeneralRe: c# function for Image Compression Pin
Luc Pattyn14-Jul-09 2:44
sitebuilderLuc Pattyn14-Jul-09 2:44 
AnswerRe: c# function for Image Compression Pin
benjymous14-Jul-09 1:42
benjymous14-Jul-09 1:42 
AnswerRe: c# function for Image Compression Pin
Ennis Ray Lynch, Jr.14-Jul-09 6:15
Ennis Ray Lynch, Jr.14-Jul-09 6:15 

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.