Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
AnswerRe: User located controls Pin
Guinness4Strength12-Nov-07 7:05
Guinness4Strength12-Nov-07 7:05 
GeneralRe: User located controls Pin
Ron Modesitt12-Nov-07 8:33
Ron Modesitt12-Nov-07 8:33 
Questionleft panel Pin
md_refay12-Nov-07 3:37
md_refay12-Nov-07 3:37 
AnswerRe: left panel Pin
leppie12-Nov-07 3:52
leppie12-Nov-07 3:52 
AnswerRe: left panel Pin
Justin Perez12-Nov-07 5:40
Justin Perez12-Nov-07 5:40 
Questionundo and redo realization Pin
Seraph_summer12-Nov-07 3:30
Seraph_summer12-Nov-07 3:30 
AnswerRe: undo and redo realization Pin
leppie12-Nov-07 3:50
leppie12-Nov-07 3:50 
AnswerRe: undo and redo realization Pin
Russell Jones12-Nov-07 7:22
Russell Jones12-Nov-07 7:22 
it depends alot on what environment you are working in.

If you're saving changes to a DB for instance you're going to need to roll back the changes in reverse order taking account of what other users might have done to effect the state of the DB in the meantime.

If you are drawing a poly line and you store the points in an ordered list then removing them one at a time from the end will achieve an undo.

If your application communicates using messages and you can find an inverse for all of those messages then you could store the messages in a list and a pointer to the current position. Redo moves the pointer up one, adding something new deletes everything after in the list etc ect.

Your object could store a collection of serialised versions of itself and each time you change the object you serialise it into its own internal store (hint: mark the collection so that it doesn't get serialised) This might be nice as you could add this functionality to an UndoRedoBase but could potentially use alot of memory.

my 2p

Russ
QuestionC# - Accessing SMB shares Pin
wbjohnson12-Nov-07 3:25
wbjohnson12-Nov-07 3:25 
Questionmove to previous and next images Pin
cwah12-Nov-07 3:23
cwah12-Nov-07 3:23 
AnswerRe: move to previous and next images Pin
leppie12-Nov-07 3:49
leppie12-Nov-07 3:49 
Questionmove images Pin
cwah12-Nov-07 3:22
cwah12-Nov-07 3:22 
QuestionHow do i create a desktop application in c#.net on automobile industry? Pin
12nidhi12-Nov-07 3:13
12nidhi12-Nov-07 3:13 
AnswerRe: How do i create a desktop application in c#.net on automobile industry? Pin
Colin Angus Mackay12-Nov-07 3:39
Colin Angus Mackay12-Nov-07 3:39 
GeneralRe: How do i create a desktop application in c#.net on automobile industry? Pin
12nidhi12-Nov-07 6:15
12nidhi12-Nov-07 6:15 
GeneralRe: How do i create a desktop application in c#.net on automobile industry? Pin
Colin Angus Mackay12-Nov-07 6:56
Colin Angus Mackay12-Nov-07 6:56 
AnswerRe: How do i create a desktop application in c#.net on automobile industry? Pin
Pete O'Hanlon12-Nov-07 4:27
mvePete O'Hanlon12-Nov-07 4:27 
QuestionWhy does MemoryStream.Read() corrupt the byte array? Pin
szolDat12-Nov-07 3:10
szolDat12-Nov-07 3:10 
AnswerRe: Why does MemoryStream.Read() corrupt the byte array? Pin
Guffa12-Nov-07 3:18
Guffa12-Nov-07 3:18 
AnswerRe: Why does MemoryStream.Read() corrupt the byte array? Pin
szolDat12-Nov-07 3:49
szolDat12-Nov-07 3:49 
GeneralRe: Why does MemoryStream.Read() corrupt the byte array? Pin
leppie12-Nov-07 3:51
leppie12-Nov-07 3:51 
GeneralRe: Why does MemoryStream.Read() corrupt the byte array? Pin
szolDat12-Nov-07 4:32
szolDat12-Nov-07 4:32 
GeneralRe: Why does MemoryStream.Read() corrupt the byte array? Pin
Guffa12-Nov-07 6:50
Guffa12-Nov-07 6:50 
QuestionCreating Custom Control in C# Pin
Abhijit Jana12-Nov-07 2:45
professionalAbhijit Jana12-Nov-07 2:45 
AnswerRe: Creating Custom Control in C# Pin
Eduard Keilholz12-Nov-07 3:04
Eduard Keilholz12-Nov-07 3:04 

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.