/// <summary> /// Delegated method of accessing UI elements in the threads /// </summary> /// <param name="sender">Sender</param> /// <param name="e">The DirectorySearchingEventArgs instance</param> private void Delegated_DirectorySearching(object sender, DirectorySearchingEventArgs e) { if (this.InvokeRequired) { DirectorySearchingDelegate d = new DirectorySearchingDelegate(Delegated_DirectorySearching); this.Invoke(d, new object[] { sender, e }); } else { OnDirectorySearching(sender, e); } }
private void selectedFilesAndFoldersForm_DirectorySearching(object sender, DirectorySearchingEventArgs e) { statusBar.Panels["ApplicationInformation"].Text = e.Directory; statusBar.Panels["ApplicationInformationCaption"].Text = string.Format(SunnyChen.Gulu.Win.Properties.Resources.TEXT_SEARCHING_DIRECTORY, e.CurrentlyAdded); }
/// <summary> /// Event handling procedure which was called when the directories are being searching. /// </summary> /// <param name="sender">Sender of the event.</param> /// <param name="e"></param> protected void OnDirectorySearching(object sender, DirectorySearchingEventArgs e) { if (DirectorySearching != null) { DirectorySearching(sender, e); } }