Click here to Skip to main content
15,880,891 members
Home / Discussions / C#
   

C#

 
QuestionApp Without Installation Pin
C-P-User-326-Oct-12 10:33
C-P-User-326-Oct-12 10:33 
AnswerRe: App Without Installation Pin
Ravi Bhavnani26-Oct-12 10:41
professionalRavi Bhavnani26-Oct-12 10:41 
AnswerRe: App Without Installation Pin
Clifford Nelson26-Oct-12 12:11
Clifford Nelson26-Oct-12 12:11 
AnswerRe: App Without Installation Pin
Eddy Vluggen27-Oct-12 4:28
professionalEddy Vluggen27-Oct-12 4:28 
QuestionBest way for 'OK' and 'Cancel' button implementation in a modal dialog Pin
Praveen Raghuvanshi26-Oct-12 9:40
professionalPraveen Raghuvanshi26-Oct-12 9:40 
AnswerRe: Best way for 'OK' and 'Cancel' button implementation in a modal dialog Pin
cocis4826-Oct-12 11:13
cocis4826-Oct-12 11:13 
GeneralRe: Best way for 'OK' and 'Cancel' button implementation in a modal dialog Pin
Praveen Raghuvanshi27-Oct-12 7:39
professionalPraveen Raghuvanshi27-Oct-12 7:39 
AnswerRe: Best way for 'OK' and 'Cancel' button implementation in a modal dialog Pin
Eddy Vluggen27-Oct-12 4:34
professionalEddy Vluggen27-Oct-12 4:34 
Rags1512 wrote:
Q: what could be the best way to handle 'Ok' and 'Cancel' in a dialog? Is creating a cloned object right way?

There is no "right" way, there are only efficient, inefficient and non-compiling implementations. FWIW, I'm doing something similar; I clone the object and throw it in a PropertyEditor. Has a third button that says "reset" that simply clones the original again and uploads it anew in the PropertyEditor. Works well, doesn't have much overhead.

Rags1512 wrote:
Q: How can we implement undo/redo here?

An undo/redo is usually limited to the form where one is editing. You'd need the Memento-pattern, saving the internal state of the object every time the user performs an action. Undoing the action is then as simple as fetching the internal state from that point.
Bastard Programmer from Hell Suspicious | :suss:
if you can't read my code, try converting it here[^]

GeneralRe: Best way for 'OK' and 'Cancel' button implementation in a modal dialog Pin
Praveen Raghuvanshi27-Oct-12 7:45
professionalPraveen Raghuvanshi27-Oct-12 7:45 
GeneralRe: Best way for 'OK' and 'Cancel' button implementation in a modal dialog Pin
cocis4827-Oct-12 16:01
cocis4827-Oct-12 16:01 
AnswerRe: Best way for 'OK' and 'Cancel' button implementation in a modal dialog Pin
BobJanova29-Oct-12 0:38
BobJanova29-Oct-12 0:38 
GeneralRe: Best way for 'OK' and 'Cancel' button implementation in a modal dialog Pin
Praveen Raghuvanshi31-Oct-12 7:59
professionalPraveen Raghuvanshi31-Oct-12 7:59 
QuestionInvoking a method using its 'string' name Pin
PozzaVecia26-Oct-12 8:28
PozzaVecia26-Oct-12 8:28 
AnswerRe: Invoking a method using its 'string' name Pin
jschell26-Oct-12 8:46
jschell26-Oct-12 8:46 
GeneralRe: Invoking a method using its 'string' name Pin
BobJanova29-Oct-12 0:40
BobJanova29-Oct-12 0:40 
GeneralRe: Invoking a method using its 'string' name Pin
jschell29-Oct-12 8:27
jschell29-Oct-12 8:27 
GeneralRe: Invoking a method using its 'string' name Pin
BobJanova29-Oct-12 23:37
BobJanova29-Oct-12 23:37 
GeneralRe: Invoking a method using its 'string' name Pin
jschell30-Oct-12 9:54
jschell30-Oct-12 9:54 
AnswerRe: Invoking a method using its 'string' name Pin
Clifford Nelson26-Oct-12 8:48
Clifford Nelson26-Oct-12 8:48 
GeneralRe: Invoking a method using its 'string' name Pin
PozzaVecia26-Oct-12 9:01
PozzaVecia26-Oct-12 9:01 
AnswerRe: Invoking a method using its 'string' name Pin
Clifford Nelson26-Oct-12 9:03
Clifford Nelson26-Oct-12 9:03 
AnswerRe: Invoking a method using its 'string' name Pin
BobJanova29-Oct-12 0:42
BobJanova29-Oct-12 0:42 
QuestionUnexpected naming of client for a WCF service Pin
Tridip Bhattacharjee26-Oct-12 7:17
professionalTridip Bhattacharjee26-Oct-12 7:17 
AnswerRe: Unexpected naming of client for a WCF service Pin
Richard MacCutchan26-Oct-12 7:47
mveRichard MacCutchan26-Oct-12 7:47 
AnswerRe: Unexpected naming of client for a WCF service Pin
Ravi Bhavnani26-Oct-12 8:56
professionalRavi Bhavnani26-Oct-12 8:56 

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.