private void MacFTPChecker_Load(object sender, EventArgs e) { //as a default, set the date times to today dtpClientStatements.Value = dtpRawData.Value = BusinessDay.GetLastBusinessDayDateTime(DateTime.Today); updateFromFTP(); }
void updateMacqFTPStatusLabel() { //get ftp directory listing List <string> contents = FTPToolkit.getFTPDirectoryContents( Constants.MacFTPLocationSignedInAsMacquarie, Constants.MacFTPLocationUser, Constants.MacFTPLocationPass); int totalStatements = FilenameChecker.howManyClientStatements(contents, BusinessDay.GetLastBusinessDayDateTime(DateTime.Today)) + FilenameChecker.howManyRawDataStatements(contents, BusinessDay.GetLastBusinessDayDateTime(DateTime.Today)); lblMacqFTPStatusAnswer.Text = totalStatements.ToString() + " statements waiting"; }