public AutomaticTestsUserControl(Dictionary<string, XmlFile> xmlFilesList, ListBox listBoxXmlFiles)
        {
            InitializeComponent();
            xmlFilesListReference = xmlFilesList;
            listBoxXmlFilesReference = listBoxXmlFiles;

            backgroundWorker1.WorkerSupportsCancellation = true;

            // TODO: remove variables:
            file_dir = "c:\\SE_test";
            batch_dir = "c:\\SE_test\\test_batch.bat";
            // TODO: provide some default empty path
            executor = new BatchExecutor(batch_dir);
        }
        private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();
            dialog.FileName = batch_dir;
            dialog.Filter = "Batch Files (*.bat)|*.bat|All Files (*.*)|*.*";
            if (dialog.ShowDialog() == DialogResult.OK)
            {
                batch_dir = dialog.FileName;
                executor = new BatchExecutor(batch_dir);
                textBox1.Text = batch_dir;

                //database.SaveUserItem(1, batch_dir);
            }
        }