예제 #1
0
        private void FindAsset()
        {
            // Clear any previous results
            lvResults.Items.Clear();
            lvResults.Refresh();
            lblResults.Visible = true;
            lblResults.Text    = "Searching, please wait...";
            lblResults.Refresh();

            // Suspend updating of the tree while we do the search
            _explorerTree.BeginUpdate();

            // Get a list of the selected GROUPS as we cannot select individual assets
            PopulateMatches(tbFindAssetName.Text.ToUpper(), GetSelectedGroups());

            lblResults.Text = String.Format("Found {0} {1}", lvResults.Items.Count, (lvResults.Items.Count == 1) ? "result" : "results");

            // end updating
            _explorerTree.EndUpdate();
        }
예제 #2
0
 private void UpdateColor()
 {
     mUltraTree.BeginUpdate();
     SetBackColor(mSelectedElements);
     mUltraTree.EndUpdate();
 }