public void DownloadFileFromServer(string fname) { if (stProcessor.checkDownloadedFile(fname) == "0") // 0 - Not Present { try { //logger.Log("File Download Process Started : " + DateTime.Now.ToString(), LogLevel.INFORMATION); //stProcessor.download_US60_SalesListPrice(); '25Mar2019 stProcessor.DownloadTheFile(fname); } catch (Exception ex) { logger.Log(ex.Message, LogLevel.ERR); throw new Exception(ex.Message); } //finally //{ // logger.Log("File Download Process Completed : " + DateTime.Now.ToString(), LogLevel.INFORMATION); // // label1.Text = "Done! Check log and the downloaded file too."; //} } else { //File already Present! } }