예제 #1
0
        ///////////////////////////////////////////////////////////////////////////////
        // Eventhandler for Custom Defined Events                                    //
        ///////////////////////////////////////////////////////////////////////////////
        #region CUSTOMEVENTHANDLER
        #endregion //CUSTOMEVENTHANDLER

        #endregion //EVENTS

        ///////////////////////////////////////////////////////////////////////////////
        // Methods and Eventhandling for Background tasks                            //
        ///////////////////////////////////////////////////////////////////////////////
        #region BACKGROUNDWORKER
        #endregion //BACKGROUNDWORKER

        ///////////////////////////////////////////////////////////////////////////////
        // Methods for doing main class job                                          //
        ///////////////////////////////////////////////////////////////////////////////
        #region PRIVATEMETHODS

        /// <summary>
        /// This method populates the dialogs <see cref="TreeView"/>
        /// with the given slideshow.
        /// </summary>
        /// <param name="slideshow">The <see cref="Slideshow"/> to be used.</param>
        private void PopulateTreeview(Slideshow slideshow)
        {
            Slideshow clone = (Slideshow)slideshow.Clone();

            clone.Remove();
            this.trvSlideshow.BeginUpdate();
            this.trvSlideshow.Nodes.Clear();
            this.trvSlideshow.Nodes.Add(clone);
            this.trvSlideshow.EndUpdate();
            this.trvSlideshow.ExpandAll();
        }