private void StartLoadFiles(bool newProfile)
 {
     if (!bgWorker.IsBusy)
     {
         if (newProfile)
         {
             NewProfile();
         }
         if (_autoUnBind)
         {
             _unbinder.UnbindProgress += UnbindProgress;
         }
         _iconListManager = new IconListManager(imageList16, IconReader.IconSize.Small);
         _iconListManager.ClearLists(); // to refresh Icon from .exe
         ToolBarMenusVisibility(false);
         listViewFiles.Items.Clear();
         lblProfileCaption.Text =
             lblStatus.Text     = "Scanning...";
         if (_selectedWorkspace != null)
         {
             menuItemUnbind.Text = btnUnbind.Text = "Unbind " + _selectedWorkspace.Name;
         }
         _scannedFiles = 0;
         _validFiles   = 0;
         _isLoading    = progressBar.Visible = true;
         lblPath.Text  = _directory;
         lblName.Text  = _folder;
         bgWorker.RunWorkerAsync();
     }
 }
Exemplo n.º 2
0
 private void InitializeBindings()
 {
     _iconListManager.ClearLists(); // to refresh Icon from .exe
     listViewBind.Items.Clear();
     _bindings = new Bindings(BindingFile.DatabaseFile);
     _bindings.Initialize(listViewBind, _iconListManager);
     ClearSelection();
 }