Exemplo n.º 1
0
        private void ResourceBrowser_Shown(object sender, EventArgs e)
        {
            ClearDirectoryTree       = () => directoryTreeView.Nodes.Clear();
            AddToDirectoryTree       = (node) => directoryTreeView.Nodes.Add(node);
            RedrawDirectoryTree      = () => directoryTreeView.Update();
            BeginUpdateDirectoryTree = () => directoryTreeView.BeginUpdate();
            EndUpdateDirectoryTree   = () => { directoryTreeView.EndUpdate(); directoryTreeView.Update(); };

            refreshBackgroundWorker.RunWorkerAsync();
        }
Exemplo n.º 2
0
        private void ResourceBrowser_Shown(object sender, EventArgs e)
        {
            ClearDirectoryTree = () => directoryTreeView.Nodes.Clear();
            AddToDirectoryTree = (node) => directoryTreeView.Nodes.Add(node);
            RedrawDirectoryTree = () => directoryTreeView.Update();
            BeginUpdateDirectoryTree = () => directoryTreeView.BeginUpdate();
            EndUpdateDirectoryTree = () => { directoryTreeView.EndUpdate(); directoryTreeView.Update(); };

            refreshBackgroundWorker.RunWorkerAsync();
        }