GetProgressBar() public méthode

public GetProgressBar ( ) : ProgressBar
Résultat ProgressBar
Exemple #1
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();
        }
Exemple #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();
        }