Click here to Skip to main content
15,910,009 members
Home / Discussions / C#
   

C#

 
QuestionCan I create a continoues database form Pin
Muhammad Gouda3-Jul-07 3:39
Muhammad Gouda3-Jul-07 3:39 
QuestionC# Threading Gurus input needed (FileSystemWatcher ) Pin
mejax3-Jul-07 3:38
mejax3-Jul-07 3:38 
AnswerRe: C# Threading Gurus input needed (FileSystemWatcher ) Pin
Judah Gabriel Himango3-Jul-07 4:30
sponsorJudah Gabriel Himango3-Jul-07 4:30 
AnswerRe: C# Threading Gurus input needed (FileSystemWatcher ) Pin
pbraun3-Jul-07 5:56
pbraun3-Jul-07 5:56 
QuestionHow to update a class property with a timer Pin
pusch3-Jul-07 3:03
pusch3-Jul-07 3:03 
AnswerRe: How to update a class property with a timer Pin
Luc Pattyn3-Jul-07 3:06
sitebuilderLuc Pattyn3-Jul-07 3:06 
GeneralRe: How to update a class property with a timer Pin
pusch3-Jul-07 5:13
pusch3-Jul-07 5:13 
GeneralRe: How to update a class property with a timer Pin
Luc Pattyn3-Jul-07 5:30
sitebuilderLuc Pattyn3-Jul-07 5:30 
Hi,

if you have a "TVCard" class in C#, it should probably not be concerned by GUI stuff at all;
but it might offer a "Station" property getting/setting the current station selected.

Then an app using the TVCard class could periodically read and display the Station property
using the right thread, and based on its own requirements.

Alternatively, but I dont like this as much, the TVCard class could offer an event that
periodically reports the Station setting; then the app can subscribe to that event,
and must itself take care of the threading issues. The reason I dont like this that much
is that now the TVCard is deciding on how often something happens in the app, normally
the app is in charge !

Of course you could give the TVCard an Interval property as well,
so it really starts to look like a timer.

And yes, you could teach your TVCard to always raise the event on the GUI thread too,
but that would not be needed when an app wants to know but not display the Station setting,
therefore it should not be included in the TVCard ("separation of concerns").

So I would stick with the simple Station propery and let the app do timing and GUI stuff.

Smile | :)


GeneralRe: How to update a class property with a timer Pin
pusch3-Jul-07 6:04
pusch3-Jul-07 6:04 
AnswerRe: How to update a class property with a timer Pin
Jimmanuel3-Jul-07 5:47
Jimmanuel3-Jul-07 5:47 
GeneralRe: How to update a class property with a timer Pin
pusch3-Jul-07 6:15
pusch3-Jul-07 6:15 
QuestionText Disappear From MessageBox Pin
Himanshu_ITDevloper3-Jul-07 2:37
Himanshu_ITDevloper3-Jul-07 2:37 
AnswerRe: Text Disappear From MessageBox Pin
Dave Sexton3-Jul-07 2:58
Dave Sexton3-Jul-07 2:58 
AnswerRe: Text Disappear From MessageBox Pin
mfmaneef3-Jul-07 9:45
mfmaneef3-Jul-07 9:45 
QuestionDisappear Text From MessageBox Pin
shah_pranav13-Jul-07 2:20
shah_pranav13-Jul-07 2:20 
AnswerRe: Disappear Text From MessageBox Pin
Judah Gabriel Himango3-Jul-07 4:34
sponsorJudah Gabriel Himango3-Jul-07 4:34 
Questionfetch jpeg image dimension without load it Pin
small_programmer3-Jul-07 2:18
small_programmer3-Jul-07 2:18 
AnswerRe: fetch jpeg image dimension without load it Pin
Pete O'Hanlon3-Jul-07 2:26
mvePete O'Hanlon3-Jul-07 2:26 
GeneralRe: fetch jpeg image dimension without load it Pin
small_programmer3-Jul-07 2:39
small_programmer3-Jul-07 2:39 
GeneralRe: fetch jpeg image dimension without load it Pin
Luc Pattyn3-Jul-07 2:45
sitebuilderLuc Pattyn3-Jul-07 2:45 
GeneralRe: fetch jpeg image dimension without load it [modified] Pin
small_programmer3-Jul-07 2:57
small_programmer3-Jul-07 2:57 
GeneralRe: fetch jpeg image dimension without load it Pin
Dave Kreskowiak3-Jul-07 6:51
mveDave Kreskowiak3-Jul-07 6:51 
QuestionRe: fetch jpeg image dimension without load it Pin
small_programmer10-Jul-07 2:55
small_programmer10-Jul-07 2:55 
AnswerRe: fetch jpeg image dimension without load it Pin
Dave Kreskowiak10-Jul-07 12:26
mveDave Kreskowiak10-Jul-07 12:26 
GeneralRe: fetch jpeg image dimension without load it Pin
Pete O'Hanlon3-Jul-07 2:50
mvePete O'Hanlon3-Jul-07 2:50 

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.