GetPathInfoList() public method

public GetPathInfoList ( ) : ArrayList
return System.Collections.ArrayList
Esempio n. 1
0
        private void CalcOpenFolders()
        {
            ArrayList to_remove = new ArrayList();

            // reset all information about open folders to current view
            foreach (PathInfo pi in li.GetPathInfoList())
            {
                pi.Open = false;
                if (pi.IsEmpty())
                {
                    to_remove.Add(pi.Path);
                }
            }

            foreach (string str in to_remove)
            {
                li.RemovePath(str);
            }

            foreach (TreeNode node in treeFolders.Nodes)
            {
                if (node.IsExpanded)
                {
                    SetOpenFolders(node);
                }
            }
        }
Esempio n. 2
0
        public void Reload()
        {
            try
            {
                li = new LocalInfo();
                li.LoadFromXML(Properties.Settings.Default.LocalInfoXml);

                treeFolders.Initialize();
                foreach (PathInfo pi in li.GetPathInfoList())
                    if (pi.ManualAdd)
                        treeFolders.AddBaseNode(pi.Path);

                ExpandOpenFolders();
            }
            catch (Exception ex)
            {
                Error("Error initializing local folders Window", ex, ErrorType.FatalError);
            }

            try
            {
                AboutBox1 about = new AboutBox1("PLEASE WAIT... LOADING YOUR SETS");
                if (!autorun)
                    about.Show();

                Application.DoEvents();

                Flickr.CacheDisabled = true;
                ri = new RemoteInfo();
                Flickr.CacheDisabled = false; // ri already has the sets lists. Cache can be used for thumbnails

                listSets.Items.Clear();
                imageListLarge.Images.Clear();
                imageListSmall.Images.Clear();

                if (autorun)
                    FillListSet(null);
                else
                    FillListSet(about.GetProgressBar());

                ValidateSets();

                Application.DoEvents();
                about.Close();
            }
            catch (Exception ex)
            {
                Error("Error obtaining flickr sets", ex, ErrorType.FatalError);
            }

            CalcTooltips();
            UpdateStatusBar();
        }
Esempio n. 3
0
        public void Reload()
        {
            try
            {
                li = new LocalInfo();
                li.LoadFromXML(Properties.Settings.Default.LocalInfoXml);

                treeFolders.Initialize();
                foreach (PathInfo pi in li.GetPathInfoList())
                {
                    if (pi.ManualAdd)
                    {
                        treeFolders.AddBaseNode(pi.Path);
                    }
                }

                ExpandOpenFolders();
            }
            catch (Exception ex)
            {
                Error("Error initializing local folders Window", ex, ErrorType.FatalError);
            }

            try
            {
                AboutBox1 about = new AboutBox1("PLEASE WAIT... LOADING YOUR SETS");
                if (!autorun)
                {
                    about.Show();
                }

                Application.DoEvents();

                Flickr.CacheDisabled = true;
                ri = new RemoteInfo();
                Flickr.CacheDisabled = false; // ri already has the sets lists. Cache can be used for thumbnails

                listSets.Items.Clear();
                imageListLarge.Images.Clear();
                imageListSmall.Images.Clear();

                if (autorun)
                {
                    FillListSet(null);
                }
                else
                {
                    FillListSet(about.GetProgressBar());
                }

                ValidateSets();

                Application.DoEvents();
                about.Close();
            }
            catch (Exception ex)
            {
                Error("Error obtaining flickr sets", ex, ErrorType.FatalError);
            }

            CalcTooltips();
            UpdateStatusBar();
        }