0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
I'd use an enum for the patient. much easier, to get the char value use the toString() method of the enum. Then linq becomes your friend: List<Product> patients = GetProductList(); var sortedPatients =( from p in patients orderby p.patient select p).toList(); But also the post above is correct you are …
[QUOTE=Momerath;1493562]the sender argument will tell you which button you pressed. You just need to cast it to a button type.[/QUOTE] This is the correct answer, in the gui you assign the same method to each event. Or alternatively just use different click events and call the method from there.
The End.