hi evryone, I got a new Winform Net 2.0 project. I need to ftp(upload when a specified amount of files coming and download every 15 minutes) the files and it need to be automated. What is the best design Currently my desgn is:
1) Form load event, start the FIleSytemWatcher ( or Main() in Program.cs is better )
2) also at Form load event, start the timer immediately for download files (which timer is best System.Timers System.Threading.Timer)
3) start 2 threads, i increase the counter for total files coming, another reserved for ftp the files . These 2 must be place on the OnChanged event, I think.
4) lock the ftp progress when it's ftp-ing, because double amount of the files coming maybe trigger it again
is it ok Or anyone have better idea