Example #1
0
        private void watchFile_Click(object sender, EventArgs e)
        {
            File1 f = new File1();

            fs.rootDirectory   = f.OpenFile();
            this.openfile.Text = fs.rootDirectory;
            this.listBox.Items.Clear();
            //DirectoryInfo directoryInfo = new DirectoryInfo(fs.rootDirectory);
            File1 getFiles = new File1();
            //getFiles.searchFilesFolder(fs.rootDirectory);
            Thread thSearchFile = new Thread(new ParameterizedThreadStart(getFiles.searchFilesFolder));

            thSearchFile.Start(this);
        }
Example #2
0
        private void watchFile_Click(object sender, EventArgs e)
        {
            File1 f = new File1();

            fs.rootDirectory   = f.OpenFile();
            this.openfile.Text = fs.rootDirectory;
            this.listBox.Items.Clear();
            File1 getFiles = new File1();

            getFiles.searchFilesFolder(fs.rootDirectory);
            foreach (string file in fs.fileName)
            {
                this.listBox.Items.Add(file);
            }
            bindText();
        }