Click here to Skip to main content
15,867,686 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to convert a number to a string Pin
Ryzhiy23-Apr-04 1:38
Ryzhiy23-Apr-04 1:38 
AnswerRe: How to convert a number to a string Pin
Heath Stewart23-Apr-04 2:43
protectorHeath Stewart23-Apr-04 2:43 
QuestionUndo Redo option? Pin
azusakt22-Apr-04 16:02
azusakt22-Apr-04 16:02 
AnswerRe: Undo Redo option? Pin
Christian Graus22-Apr-04 16:14
protectorChristian Graus22-Apr-04 16:14 
GeneralRe: Undo Redo option? Pin
azusakt22-Apr-04 16:24
azusakt22-Apr-04 16:24 
GeneralRe: Undo Redo option? Pin
Christian Graus22-Apr-04 16:27
protectorChristian Graus22-Apr-04 16:27 
GeneralRe: Undo Redo option? Pin
azusakt22-Apr-04 16:40
azusakt22-Apr-04 16:40 
GeneralRe: Undo Redo option? Pin
Christian Graus22-Apr-04 16:45
protectorChristian Graus22-Apr-04 16:45 
Examples probably exist on the web, but I don't know of any. I did this years ago, for a paint program. I think we stored small bitmaps that represented the section of the image that was changed, along with a position to draw them back.

azusakt wrote:
what will the class do ??

If there's a wide variety of changes to be done, each class will be able to perform the modifications needed to undo one action. I'd imagine they might use the visitor pattern ? I'd imagine a base class, then a derived class at least for each type of object that can have an undo done on it.

Christian

I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
GeneralRe: Undo Redo option? Pin
«_Superman_»22-Apr-04 23:43
professional«_Superman_»22-Apr-04 23:43 
AnswerRe: Undo Redo option? Pin
Heath Stewart23-Apr-04 2:48
protectorHeath Stewart23-Apr-04 2:48 
Generalconvert C# code to FORTRAN 95 Pin
jackconnolly22-Apr-04 16:01
jackconnolly22-Apr-04 16:01 
GeneralRe: convert C# code to FORTRAN 95 Pin
hammackj22-Apr-04 17:16
hammackj22-Apr-04 17:16 
GeneralRe: convert C# code to FORTRAN 95 Pin
Dave Kreskowiak23-Apr-04 0:35
mveDave Kreskowiak23-Apr-04 0:35 
Generalsscanf in c# / passing variable number of arguments Pin
Anonymous22-Apr-04 14:31
Anonymous22-Apr-04 14:31 
GeneralRe: sscanf in c# / passing variable number of arguments Pin
Heath Stewart23-Apr-04 2:54
protectorHeath Stewart23-Apr-04 2:54 
GeneralAsserts in release builds Pin
Anders Molin22-Apr-04 10:30
professionalAnders Molin22-Apr-04 10:30 
GeneralRe: Asserts in release builds Pin
Heath Stewart22-Apr-04 11:18
protectorHeath Stewart22-Apr-04 11:18 
GeneralRe: Asserts in release builds Pin
Anders Molin22-Apr-04 11:22
professionalAnders Molin22-Apr-04 11:22 
GeneralRe: Asserts in release builds Pin
Heath Stewart22-Apr-04 11:36
protectorHeath Stewart22-Apr-04 11:36 
GeneralRe: Asserts in release builds Pin
Anders Molin22-Apr-04 12:01
professionalAnders Molin22-Apr-04 12:01 
Generalscanner Pin
cmarmr22-Apr-04 10:15
cmarmr22-Apr-04 10:15 
GeneralRe: scanner Pin
Dimitris Iliopoulos22-Apr-04 10:52
Dimitris Iliopoulos22-Apr-04 10:52 
GeneralOpen an URL and get an URL Pin
olreit22-Apr-04 9:38
olreit22-Apr-04 9:38 
GeneralRe: Open an URL and get an URL Pin
Heath Stewart22-Apr-04 9:51
protectorHeath Stewart22-Apr-04 9:51 
GeneralExtrending properties - version - other version information dialog Pin
DavidNohejl22-Apr-04 9:33
DavidNohejl22-Apr-04 9:33 

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.