예제 #1
0
 /// <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);
     }
 }
예제 #2
0
파일: frmMain.cs 프로젝트: daxnet/guluwin
 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);
 }
예제 #3
0
 /// <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);
     }
 }