public FolderSelectDialog(int[] docIDs, int empID)
        {
            InitializeComponent();

            Show();
            Cursor      = Cursors.WaitCursor;
            Enabled     = false;
            this.docIDs = docIDs;

            Slave.DoWork("BuildFriendlyDocList", new object[] { docIDs }, OnBuildFriendlyDocListComplete);

            tree.CreateWorkFolderRoot();
            tree.CreateSharedWorkFolderRoot(true);

            foreach (TreeNode node in tree.Nodes.Cast <TreeNode>().Where(node =>
            {
                var workFolderNode = node as FolderTree.FolderNodes.WorkNodes.WorkFolderNode;
                return(workFolderNode != null && workFolderNode.Emp.ID != empID);
            }))
            {
                node.Remove();
            }

            tree.UpdateWorkFolderStatus();
            tree.ExpandAll();
        }
        private void PropertiesFolderRuleApplyDialog_Load(object sender, EventArgs e)
        {
            try
            {
                tree.CreateWorkFolderRoot();
                tree.WorkFolderNode.Checked = true;
                PreviousCheckedNode         = tree.WorkFolderNode;
                tree.CreateSharedWorkFolderRoot(true);

                tree.ExpandAll();
            }
            catch (Exception ex)
            {
                Lib.Win.Data.Env.WriteToLog(ex);
            }
        }