Click here to Skip to main content
15,906,213 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi,

Please help me, I want write this algorthim???

I have windows include textbox and 32 buttons, each button represents of one a patient's teeth.

The button numbering is like this:

87654321 | 12345678
87654321 | 12345678

When I choose a button I write in a textbox a number button that represents the condition of the tooth.
I want write underline for teeth down and overline for teeth button

Please Help me ...........
Noze

[Edit: KPBarrow]
For those interested in odd pockets of knowledge
http://www.dentalfearcentral.org/resources/tooth-charts/[^]
http://www.dentistq.org/dental-what-do-numbers-mean-20-02-2011[^]
Oh and the Arabic biddle translates to substitution, but I have translated it as represents here.
Posted
Updated 27-May-11 20:17pm
v3
Comments
Sunasara Imdadhusen 21-May-11 0:20am    
I shall help you, but before that you should elaborate more..
Sergey Alexandrovich Kryukov 21-May-11 0:27am    
Agree, OP should reflect the mind of the reader. Would you understand it or not?
Please elaborate.
--SA
Sergey Alexandrovich Kryukov 21-May-11 22:41pm    
Did not help much...
--SA

1 solution

I do not see how this is an algorithm. You have 32 objects and each is a "Tooth".

I recomend using WPF and MVVM with some DataTemplates. Since you have 4 divisions of teeth you will likely have 4 collections.
UpperLeft, UpperRight, LowerLeft, LowerRight. Pop in 8 teeth to each collection. Then make a template for the tooth.
 
Share this answer
 
Comments
Noze 27-May-11 18:07pm    
ok
but can you write template code plase
.
thanks
yesotaso 27-May-11 19:04pm    
I have absolutely no experience in WPF what so ever but I am quite sure events arent handled quite different from windows forms. http://www.codeproject.com/Answers/202933/i-want-to-give-text-box-no-input-character-only-pu.aspx has a veeery long code block which defines how to not do it and Answer 1 explains how to bind many buttons performing a common task to a single event handler.
As for the algorithm... well I dont see much of an algorithm there I've looked at the links its just a naming system for teeth which could be relevant but that does not even remotely smell like algorithm.
Noze 28-May-11 2:13am    
thanks
Noze 28-May-11 2:17am    
look I want this code for this qustion
http://www.codeproject.com/Questions/199854/Csharp-How-Write-text-with-Underline-or-Overline-i.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900