Click here to Skip to main content
15,895,462 members
Home / Discussions / C#
   

C#

 
GeneralRe: Rotate Text OpenGL Pin
Paul Harsent27-Apr-10 5:30
Paul Harsent27-Apr-10 5:30 
GeneralRe: Rotate Text OpenGL Pin
Natural_Demon27-Apr-10 6:02
Natural_Demon27-Apr-10 6:02 
GeneralRe: Rotate Text OpenGL - OT Pin
DaveyM6927-Apr-10 6:16
professionalDaveyM6927-Apr-10 6:16 
GeneralRe: Rotate Text OpenGL - OT Pin
Natural_Demon27-Apr-10 6:44
Natural_Demon27-Apr-10 6:44 
GeneralRe: Rotate Text OpenGL - OT Pin
DaveyM6927-Apr-10 8:59
professionalDaveyM6927-Apr-10 8:59 
QuestionConcurrent access to private data [modified] Pin
Mystery12326-Apr-10 23:08
professionalMystery12326-Apr-10 23:08 
AnswerRe: Concurrent access to private data Pin
Simon P Stevens27-Apr-10 0:10
Simon P Stevens27-Apr-10 0:10 
GeneralRe: Concurrent access to private data Pin
Mystery12327-Apr-10 6:32
professionalMystery12327-Apr-10 6:32 
Thank you Simon, that's definitely interesting solution. But also too much of writing.

I know I should use locks and change data inside the class. And yes, it's possible by simple classes. But in my experience, more complicated classes will get huge like this. E.g. imagine a class, which contains Bezier curve (or e.g . only simple multi-segment line) and you would have to make all the modifications within this class - like rotation, movement, size change ... so I believe sometimes it's better to have different class for every function of some entity. And this is the only problem I have making it good...

I also think this is quite close to MVC pattern. How to implement it in a thread safe way in C# - hm, I don't know...

Not to mention e.g. whole program. To make some central class, which receives all commands from GUI and executes them (meaning just telling some backend what to do) - huge and awful (I ended up with 3500 lines of code for one class in one project Frown | :( ) - I think it's better to let the commands contain function code, but of course the commands need access to data.
Michal

QuestionString operation Pin
SRKSHOME26-Apr-10 22:47
SRKSHOME26-Apr-10 22:47 
AnswerRe: String operation Pin
Eddy Vluggen26-Apr-10 22:59
professionalEddy Vluggen26-Apr-10 22:59 
GeneralRe: String operation Pin
SRKSHOME26-Apr-10 23:06
SRKSHOME26-Apr-10 23:06 
GeneralRe: String operation Pin
Eddy Vluggen26-Apr-10 23:16
professionalEddy Vluggen26-Apr-10 23:16 
GeneralRe: String operation Pin
hossein narimani rad27-Apr-10 6:45
hossein narimani rad27-Apr-10 6:45 
AnswerRe: String operation Pin
Rajesh Anuhya26-Apr-10 23:07
professionalRajesh Anuhya26-Apr-10 23:07 
GeneralRe: String operation Pin
SRKSHOME26-Apr-10 23:15
SRKSHOME26-Apr-10 23:15 
GeneralRe: String operation Pin
Md. Marufuzzaman26-Apr-10 23:50
professionalMd. Marufuzzaman26-Apr-10 23:50 
GeneralRe: String operation Pin
PIEBALDconsult27-Apr-10 3:18
mvePIEBALDconsult27-Apr-10 3:18 
GeneralRe: String operation PinPopular
Luc Pattyn27-Apr-10 2:23
sitebuilderLuc Pattyn27-Apr-10 2:23 
AnswerRe: String operation Pin
PIEBALDconsult27-Apr-10 3:17
mvePIEBALDconsult27-Apr-10 3:17 
AnswerRe: String operation Pin
Ravi Bhavnani27-Apr-10 13:02
professionalRavi Bhavnani27-Apr-10 13:02 
QuestionHow can I get BITMAPINFOHEADER from Image Pin
TimSWatson26-Apr-10 22:22
TimSWatson26-Apr-10 22:22 
AnswerRe: How can I get BITMAPINFOHEADER from Image Pin
Rajesh Anuhya26-Apr-10 22:40
professionalRajesh Anuhya26-Apr-10 22:40 
GeneralRe: How can I get BITMAPINFOHEADER from Image Pin
TimSWatson26-Apr-10 23:18
TimSWatson26-Apr-10 23:18 
Questionstruct and class Pin
jitendra sandu26-Apr-10 21:07
jitendra sandu26-Apr-10 21:07 
AnswerRe: struct and class Pin
Calla26-Apr-10 21:18
Calla26-Apr-10 21:18 

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.