public FtpApp() { SetupConf MyVariables = new SetupConf(); MyVariables.setVariables(); _timer = new System.Timers.Timer(MyVariables.objVaribles.Timer) { AutoReset = true }; _timer.Elapsed += (sender, eventArgs) => PrepareApp(MyVariables); }
static void Main(string[] args) { SetupConf objSetVariables = new SetupConf(); objSetVariables.setVariables(); //cheking that all the important ftp server information is present. if (objSetVariables.objVaribles.Url.Equals("") || objSetVariables.objVaribles.Username.Equals("") || objSetVariables.objVaribles.Password.Equals("") || objSetVariables.objVaribles.Path.Equals("")) { Console.WriteLine("Please provide the required information in the auto.conf file and restart the application."); Console.ReadLine(); System.Environment.Exit(-1); } else { Console.WriteLine("starting processing step"); startProcess(objSetVariables); } }