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

C#

 
GeneralRe: How can i do this? Pin
cristi_alonso17-Jun-08 17:18
cristi_alonso17-Jun-08 17:18 
Questionhelp needed with my DB project (composite formatting) Pin
klopdisselboom17-Jun-08 1:04
klopdisselboom17-Jun-08 1:04 
AnswerRe: help needed with my DB project (composite formatting) Pin
Christian Graus17-Jun-08 2:07
protectorChristian Graus17-Jun-08 2:07 
GeneralRe: help needed with my DB project (composite formatting) Pin
klopdisselboom18-Jun-08 3:52
klopdisselboom18-Jun-08 3:52 
Questionwindows forms application using workflow c# Pin
Zeyad Jalil17-Jun-08 0:58
professionalZeyad Jalil17-Jun-08 0:58 
AnswerRe: windows forms application using workflow c# Pin
Kevin McFarlane17-Jun-08 1:51
Kevin McFarlane17-Jun-08 1:51 
QuestionRe: windows forms application using workflow c# Pin
Zeyad Jalil17-Jun-08 19:32
professionalZeyad Jalil17-Jun-08 19:32 
AnswerRe: windows forms application using workflow c# Pin
Kevin McFarlane17-Jun-08 21:59
Kevin McFarlane17-Jun-08 21:59 
QuestionReportViewer: How to get current subreport title in parent report header Pin
OregonGhost17-Jun-08 0:45
OregonGhost17-Jun-08 0:45 
QuestionBusiness classes in windows application and webservice implement same interface Pin
N a v a n e e t h17-Jun-08 0:32
N a v a n e e t h17-Jun-08 0:32 
QuestionHow can I detect the decimal separator of the current host? Pin
bouli17-Jun-08 0:31
bouli17-Jun-08 0:31 
AnswerRe: How can I detect the decimal separator of the current host? PinPopular
DaveyM6917-Jun-08 0:40
professionalDaveyM6917-Jun-08 0:40 
AnswerRe: How can I detect the decimal separator of the current host? PinPopular
DaveyM6917-Jun-08 0:44
professionalDaveyM6917-Jun-08 0:44 
Questionpass by value Pin
DaveyM6917-Jun-08 0:16
professionalDaveyM6917-Jun-08 0:16 
AnswerRe: pass by value Pin
Simon P Stevens17-Jun-08 0:40
Simon P Stevens17-Jun-08 0:40 
GeneralRe: pass by value Pin
Guffa17-Jun-08 0:50
Guffa17-Jun-08 0:50 
GeneralRe: pass by value Pin
Simon P Stevens17-Jun-08 1:07
Simon P Stevens17-Jun-08 1:07 
GeneralRe: pass by value Pin
Guffa17-Jun-08 3:21
Guffa17-Jun-08 3:21 
GeneralRe: pass by value Pin
DaveyM6917-Jun-08 0:55
professionalDaveyM6917-Jun-08 0:55 
GeneralRe: pass by value Pin
Simon P Stevens17-Jun-08 1:19
Simon P Stevens17-Jun-08 1:19 
It sounds like your talking about some kind of transactionalised editing.

I.e, you pass the collection of objects to a form, allow the user to edit and make changes, but if they click cancel you want to roll back the changes, but if they click ok, you commit the changes to the objects.

Several options.
1) Just make the changes on the objects immediatly, but if the criteria occurs that requires a cancel, reload the objects from their original source (i.e. the database)
2) Take a copy of the objects, make the changes on the copies, only commit the changes to the main objects when the criteria occurs that requires a commit. (Sounds pretty much like what you are doing already with the structs)
3) Take a copy, make the changes on the original, restore the originals from the copies if a rollback is required.
4) Record all changes to the object, if a rollback is required, reverse the changes one by one.(kind of like an undo button)

Simon

AnswerRe: pass by value Pin
RugbyLeague17-Jun-08 0:48
RugbyLeague17-Jun-08 0:48 
GeneralRe: pass by value Pin
DaveyM6917-Jun-08 0:58
professionalDaveyM6917-Jun-08 0:58 
GeneralRe: pass by value Pin
RugbyLeague17-Jun-08 1:00
RugbyLeague17-Jun-08 1:00 
AnswerRe: pass by value Pin
N a v a n e e t h17-Jun-08 0:49
N a v a n e e t h17-Jun-08 0:49 
GeneralRe: pass by value Pin
DaveyM6917-Jun-08 0:59
professionalDaveyM6917-Jun-08 0:59 

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.