public MainForm() { InitializeComponent(); pfsf = new PopupFileSearchForm(); pfsf.Visible = false; pfsf.Left = this.Left; pfsf.Top = this.Top - 50; fs = new FileSearch(ref pfsf); }
public FileSearch(ref PopupFileSearchForm sForm) { this.sForm = sForm; lastLookup = new List <FileInfo>(); workingLastLookup = new List <FileInfo>(); lastExecutableFileSearch = DateTime.Now; executableFileBW = new BackgroundWorker(); executableFileBW.DoWork += ExecutableFileBW_DoWork; executableFileBW.RunWorkerAsync(); }