public GalleryUploaderForm() { InitializeComponent(); gu = new GalleryUploader(); gu.Progress += new ProgressEventHandler(gu_Progress); txtStartingDirectory.Text = gu.CurrentDirectoryName; bgWorker = new BackgroundWorker(); bgWorker.DoWork += new DoWorkEventHandler(bgWorker_DoWork); bgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted); }
public GalleryUploaderForm() { InitializeComponent(); gu = new GalleryUploader(); gu.Progress += new ProgressEventHandler(gu_Progress); txtStartingDirectory.Text = gu.CurrentDirectoryName; bgWorker = new BackgroundWorker(); bgWorker.DoWork += new DoWorkEventHandler(bgWorker_DoWork); bgWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bgWorker_RunWorkerCompleted); }