Esempio n. 1
0
        void OnProgressDisplayBarDestroyed(object o, DestroyEventArgs args)
        {
            ProgressDisplayBar pdb = (ProgressDisplayBar)o;

            pdb.DestroyEvent -= OnProgressDisplayBarDestroyed;

            this.Remove(pdb);
        }
Esempio n. 2
0
        ///<summary>
        /// Get a callback for a new progress bar
        ///</summary>
        public ProgressCallback NewCallback()
        {
            ProgressDisplayBar pdb = new ProgressDisplayBar();

            this.PackStart(pdb);
            pdb.DestroyEvent += OnProgressDisplayBarDestroyed;

            return(pdb.Update);
        }