private bool ProcessData()
        {
            CheckButton.Enabled = false;
            CurrentProcessStatusLabel.Text = "Checking download for despatch file";
            currentFile = FileOperations.GetFirstFileInFolder(Settings.DownloadPath, "*.pvx");
            if (!string.IsNullOrEmpty(currentFile))
            {
                WriteLog(string.Format("Reading file {0}", currentFile), Color.Black);
                //read file
                var content = FileOperations.ReadFile(currentFile);
                //Find the right plugin to process.
                currentPlugin = DespatchPluginFactory.GetPlugin(content);
                if (currentPlugin == null)
                {
                    return false;
                }

                PreviewTextbox.Text = "";
                WriteLog(string.Format("Waiting to be processed by {0}", currentPlugin.PluginName), Color.Black);
                UpdateTextBox(PreviewTextbox, currentPlugin.GetPreview());
                CurrentProcessStatusLabel.Text = "Previewing despatch file for " + currentPlugin.SalesOrderNumber;
                return true;

            }

            PreviewTextbox.Text = "";
            CheckButton.Enabled = true;
            //WriteLog("No file found.", Color.Black);
            CurrentProcessStatusLabel.Text = "No file found.";

            if (!AutoCheck.Checked)
                CheckButton.Enabled = true;

            return false;
        }