Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
GeneralSQL Server Structure Access Pin
Mark Sanders20-Jun-03 3:24
Mark Sanders20-Jun-03 3:24 
GeneralRe: SQL Server Structure Access Pin
Daniel Turini20-Jun-03 3:38
Daniel Turini20-Jun-03 3:38 
GeneralRe: SQL Server Structure Access Pin
Arjan Einbu20-Jun-03 11:39
Arjan Einbu20-Jun-03 11:39 
QuestionRichText Gradient ColorFill ?? Pin
KingTermite20-Jun-03 2:59
KingTermite20-Jun-03 2:59 
GeneralRe: RichText Gradient ColorFill ?? Pin
KingTermite20-Jun-03 6:53
KingTermite20-Jun-03 6:53 
GeneralRe: RichText Gradient ColorFill ?? Pin
KingTermite20-Jun-03 10:45
KingTermite20-Jun-03 10:45 
AnswerRe: RichText Gradient ColorFill ?? Pin
Nick Parker20-Jun-03 18:22
protectorNick Parker20-Jun-03 18:22 
GeneralDelegates Design Problem Pin
Rohde20-Jun-03 2:46
Rohde20-Jun-03 2:46 
All rightie...Big Grin | :-D

I have a design problem. I'm coding an image processing application.

I have some functions for the different transformations in my app. I've then declared some delegates for those functions, and when the user chooses a transformation the appropriate delegates gets pushed in a collection.

That way I have a kind of a stack of transformations and the user can rearrange the operations and such. Clever right?

BUT, now I'm seeing a bloody big flaw. All the transformation functions need to be of the same signature (because of the delegates of course), and many transformations need some input variables; some many, some a few, and some none at all.

I don't know what to do about this. Any suggestions?

I've thought about passing around some kind of a TransformationArgs struct. That way if the transformation needs some input they can get from that. It just seems so "un-tight" and error-prone. But maybe that's just me?

Anyway, any kind of suggestions/comments would be much appreciated.

GeneralRe: Delegates Design Problem Pin
Philip Fitzsimons20-Jun-03 3:07
Philip Fitzsimons20-Jun-03 3:07 
Generalproblem in getting text in TABLE tag of html document Pin
Asim N.20-Jun-03 1:28
Asim N.20-Jun-03 1:28 
GeneralSend file from PC to PDA Pin
Justnice20-Jun-03 0:58
Justnice20-Jun-03 0:58 
QuestionHow to create VARIANT pointer of an array of structs from C# Pin
Chris Goddard19-Jun-03 23:40
Chris Goddard19-Jun-03 23:40 
AnswerRe: How to create VARIANT pointer of an array of structs from C# Pin
Nick Parker20-Jun-03 3:55
protectorNick Parker20-Jun-03 3:55 
Questionhow could I do a rebar ? Pin
JeffSayHi19-Jun-03 22:41
JeffSayHi19-Jun-03 22:41 
QuestionUsing 3rd Party API ?? Pin
slnarasimhan19-Jun-03 22:18
slnarasimhan19-Jun-03 22:18 
AnswerRe: Using 3rd Party API ?? Pin
Kannan Kalyanaraman19-Jun-03 22:25
Kannan Kalyanaraman19-Jun-03 22:25 
AnswerRe: Using 3rd Party API ?? Pin
Deepak Khajuria19-Jun-03 22:28
Deepak Khajuria19-Jun-03 22:28 
GeneralRe: Using 3rd Party API ?? Pin
slnarasimhan19-Jun-03 22:32
slnarasimhan19-Jun-03 22:32 
GeneralRe: Using 3rd Party API ?? Pin
Deepak Khajuria19-Jun-03 23:12
Deepak Khajuria19-Jun-03 23:12 
GeneralRe: Using 3rd Party API ?? Pin
slnarasimhan19-Jun-03 23:19
slnarasimhan19-Jun-03 23:19 
GeneralRe: Using 3rd Party API ?? Pin
Deepak Khajuria19-Jun-03 23:41
Deepak Khajuria19-Jun-03 23:41 
GeneralRe: Using 3rd Party API ?? Pin
slnarasimhan19-Jun-03 23:58
slnarasimhan19-Jun-03 23:58 
GeneralRe: Using 3rd Party API ?? Pin
slnarasimhan20-Jun-03 0:02
slnarasimhan20-Jun-03 0:02 
QuestionHow can a parent control draw on child controls? Pin
Arun Bhalla19-Jun-03 21:16
Arun Bhalla19-Jun-03 21:16 
AnswerRe: How can a parent control draw on child controls? Pin
KingTermite20-Jun-03 6:56
KingTermite20-Jun-03 6: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.