Provides data for the SelectedDirectoriesChangedDelegate event of a TreeViewFolderBrowser control.
Exemple #1
0
 /// <summary>
 /// Raises the SelectedDirectoriesChanged event.<seealso cref="SelectedDirectoriesChangedEventArgs"/>
 /// </summary>
 protected virtual void OnSelectedDirectoriesChanged(SelectedDirectoriesChangedEventArgs e)
 {
     if (this.SelectedDirectoriesChanged != null)
     {
         SelectedDirectoriesChanged(this, e);
     }
 }
 /// <summary>
 /// Raises the SelectedDirectoriesChanged event.<seealso cref="SelectedDirectoriesChangedEventArgs"/>
 /// </summary>
 protected virtual void OnSelectedDirectoriesChanged(SelectedDirectoriesChangedEventArgs e)
 {
     if (this.SelectedDirectoriesChanged != null) SelectedDirectoriesChanged(this, e);
 }
 /// <summary>
 /// Visualize an item selection by setting status text and updating the list box
 /// </summary>
 private void _treeViewFolderBrowser_SelectedDirectoriesChanged(object sender, SelectedDirectoriesChangedEventArgs e)
 {
     this.toolStripStatusLabel1.Text = string.Format("Action: Checked, Result: {0} is now {1}", e.Path, e.CheckState.ToString());
     listBox1.DataSource             = null;
     this.listBox1.DataSource        = _treeViewFolderBrowser.SelectedDirectories;
 }