Beispiel #1
0
        private void EvaluateFiles()
        {
            Dictionary <string, string> fileList = RequestQuery.GetFoundationFileList(state.FoundationId);

            stateDataTextBox.Text = fileList.Any() ? "Processing..." : "No Files Found";

            if (fileList.Any())
            {
                try
                {
                    FileProcessing.ReconcileFileListToDatabase(state, fileList);
                }
                catch (Exception eError)
                {
                    MessageBox.Show(this, string.Format(EVALUATE_FILE_ERROR_FORMAT, eError.Message), EVALUATE_FILE_CAPTION,
                                    MessageBoxButtons.OK, MessageBoxIcon.Error);
                }

                LoadStateData();
            }
        }