Ejemplo n.º 1
0
 /// <summary>
 /// Delegated method of accessing UI elements in the threads
 /// </summary>
 /// <param name="sender">Sender of the event</param>
 /// <param name="e">The FilesAddedEventArgs instance</param>
 private void Delegated_OnAfterAddFolder(object sender, FilesAddedEventArgs e)
 {
     if (this.InvokeRequired)
     {
         AfterAddFolderDelegate d = new AfterAddFolderDelegate(Delegated_OnAfterAddFolder);
         this.Invoke(d, new object[] { sender, e });
     }
     else
     {
         OnAfterAddFolder(sender, e);
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Event just fired after the file list has been populated
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void OnAfterAddFolder(object sender, FilesAddedEventArgs e)
        {
            fileList.VirtualListSize = items__.Count;

            toolbarsManager.Tools["mnuStopSearch"].SharedProps.Enabled = false;

            if (fileList.VirtualListSize > 0 && items__.Count > 0)
            {
                toolbarsManager.Tools["mnuClearList"].SharedProps.Enabled  = true;
                toolbarsManager.Tools["mnuCheckAll"].SharedProps.Enabled   = true;
                toolbarsManager.Tools["mnuUncheckAll"].SharedProps.Enabled = true;
            }

            if (AfterAddFolder != null)
            {
                AfterAddFolder(sender, e);
            }
        }