Example #1
0
        /// <summary>
        /// Create a new tab page for the tab control.
        /// </summary>
        /// <param name="userConfigurableFileGroup">The FileGroup instance to create a new tab page for.</param>
        /// <returns></returns>
        private TabPage CreateTabPage(UserConfigurableFileGroup userConfigurableFileGroup)
        {
            //
            // Create new fileGroupConfiguratorUserControl instance.
            //

            FileGroupConfiguratorUserControl fileGroupConfiguratorUserControl = new FileGroupConfiguratorUserControl(userConfigurableFileGroup);

            fileGroupConfiguratorUserControl.Dock = System.Windows.Forms.DockStyle.Fill;

            fileGroupConfiguratorUserControls.Add(fileGroupConfiguratorUserControl);



            //
            // Create new tab page containing the newly created FileGroup instance.
            //

            TabPage tabPage = new TabPage();

            tabPage.Text = userConfigurableFileGroup.Name;
            tabPage.Controls.Add(fileGroupConfiguratorUserControl);

            return(tabPage);
        }
        /// <summary>
        /// Create a new tab page for the tab control.
        /// </summary>
        /// <param name="userConfigurableFileGroup">The FileGroup instance to create a new tab page for.</param>
        /// <returns></returns>
        private TabPage CreateTabPage(UserConfigurableFileGroup userConfigurableFileGroup)
        {
            //
            // Create new fileGroupConfiguratorUserControl instance.
            //

            FileGroupConfiguratorUserControl fileGroupConfiguratorUserControl = new FileGroupConfiguratorUserControl(userConfigurableFileGroup);

            fileGroupConfiguratorUserControl.Dock = System.Windows.Forms.DockStyle.Fill;

            fileGroupConfiguratorUserControls.Add(fileGroupConfiguratorUserControl);

            //
            // Create new tab page containing the newly created FileGroup instance.
            //

            TabPage tabPage = new TabPage();

            tabPage.Text = userConfigurableFileGroup.Name;
            tabPage.Controls.Add(fileGroupConfiguratorUserControl);

            return (tabPage);
        }