Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
AnswerRe: Opened datareader Pin
ScottM118-Jul-07 2:09
ScottM118-Jul-07 2:09 
GeneralRe: Opened datareader Pin
Razvan Dimescu18-Jul-07 2:18
Razvan Dimescu18-Jul-07 2:18 
QuestionInvalid operation Exception on selectedindexchange event of combo box in C# Pin
kalaveer18-Jul-07 1:30
kalaveer18-Jul-07 1:30 
AnswerRe: Invalid operation Exception on selectedindexchange event of combo box in C# Pin
originSH18-Jul-07 1:40
originSH18-Jul-07 1:40 
QuestionDataGrid Pin
Taras61118-Jul-07 1:04
Taras61118-Jul-07 1:04 
QuestionExport to Excel - Add Remainging Record in Sheet2 Record Size exceed 65536 Pin
rsp702318-Jul-07 1:04
rsp702318-Jul-07 1:04 
AnswerRe: Export to Excel - Add Remainging Record in Sheet2 Record Size exceed 65536 Pin
Paul Conrad18-Jul-07 12:04
professionalPaul Conrad18-Jul-07 12:04 
QuestionMessed up code. Pin
donovan.solms18-Jul-07 0:12
donovan.solms18-Jul-07 0:12 
hi,

this is probably not a good thing to ask, but i need help because i'm not an experienced programmer. I am working on writing a 'framework' that allows you to write applications that works on multitouch tables (or surface computers). now the code isn't complicated so most of you would not have trouble understanding it, even if you've never worked with multitouch applications.

no my question is: could someone please have a look at my code and tell me if there is a better, more efficient way to do what i'm doing? or if i could get better performance? or if there is a better approach?

all the application does is load 3 photos, and allow you to rotate/scale/drag is on the screen with your fingers.
the code is available here: http://www.whitespaced.co.za/WPF_MTPhotoApp_SOURCE.zip it won't compile, you'll need more files, but let me know if you wish to compile, then i'll add the link to those files
the code works as follows:

the TouchFramework class gets the finger events from a managed c++ wrapper for unmanaged c++ fingertracker. the is raises the events, any class that has those events get raises as well, in this case TouchCanvas. TouchCanvas checks to see which object was touched and the raises it's own event and passing as parameter the UIElement that was touched. Now all the other classes that has a reference to the current canvas gets that event and checks to see if it is the object that was touched(TouchImage) and does something about it. now this works fine, but the coding is bad, i don't know is a interface would be better. and i also feel to many events are being passed around. (ex. if there are 300 images on screen and you press your finger on any one, all 300 will check if it was the one touched after the TouchCanvas already figured out what was touched.

I would really appreciate any help on this subject as i want to write this as best as possible. i also want the 'framework' to be easily extensible by added new classes, like TouchVideo and so.

Thank you
Donovan



rather have something you don't need, than need something you don't have

AnswerRe: Messed up code. Pin
Paul Conrad18-Jul-07 12:05
professionalPaul Conrad18-Jul-07 12:05 
GeneralRe: Messed up code. Pin
donovan.solms18-Jul-07 13:11
donovan.solms18-Jul-07 13:11 
QuestionPassword Protection with Excel Pin
MarkB77718-Jul-07 0:12
MarkB77718-Jul-07 0:12 
AnswerRe: Password Protection with Excel Pin
Paul Conrad18-Jul-07 12:06
professionalPaul Conrad18-Jul-07 12:06 
GeneralRe: Password Protection with Excel Pin
MarkB77718-Jul-07 12:12
MarkB77718-Jul-07 12:12 
Questionchanging background color Pin
cyn817-Jul-07 23:51
cyn817-Jul-07 23:51 
AnswerRe: changing background color Pin
Eduard Keilholz18-Jul-07 0:12
Eduard Keilholz18-Jul-07 0:12 
QuestionParsing and edit an HTML-string Pin
anderslundsgard17-Jul-07 23:31
anderslundsgard17-Jul-07 23:31 
AnswerRe: Parsing and edit an HTML-string Pin
Martin#18-Jul-07 0:14
Martin#18-Jul-07 0:14 
AnswerRe: Parsing and edit an HTML-string Pin
Ravi Bhavnani18-Jul-07 2:20
professionalRavi Bhavnani18-Jul-07 2:20 
QuestionUDP multicast Pin
Amjath Rahman17-Jul-07 23:16
Amjath Rahman17-Jul-07 23:16 
QuestionList View search Pin
topksharma198217-Jul-07 23:10
topksharma198217-Jul-07 23:10 
AnswerRe: List View search Pin
Eduard Keilholz18-Jul-07 0:16
Eduard Keilholz18-Jul-07 0:16 
QuestionC#.net error: Attempt to read or write protected memory or often this is the indication that other memory is currupt Pin
Rao Rafique17-Jul-07 22:44
Rao Rafique17-Jul-07 22:44 
QuestionCannot implicitly convert type 'test.Str.StrEnumerator' to 'System.Collections.IEnumerator'. An explicit conversion exists (are you missing a cast?) Pin
abhishek.mumbai17-Jul-07 22:42
abhishek.mumbai17-Jul-07 22:42 
AnswerRe: Cannot implicitly convert type 'test.Str.StrEnumerator' to 'System.Collections.IEnumerator'. An explicit conversion exists (are you missing a cast?) Pin
J4amieC17-Jul-07 23:09
J4amieC17-Jul-07 23:09 
AnswerRe: Cannot implicitly convert type 'test.Str.StrEnumerator' to 'System.Collections.IEnumerator'. An explicit conversion exists (are you missing a cast?) Pin
Colin Angus Mackay17-Jul-07 23:10
Colin Angus Mackay17-Jul-07 23:10 

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.