/// <summary> Adds any necessary controls to one of two place holders on the main ASPX page </summary>
        /// <param name="placeHolder"> Main place holder ( &quot;mainPlaceHolder&quot; ) in the itemNavForm form, widely used throughout the application</param>
        /// <param name="uploadFilesPlaceHolder"> Alternate place holder ( &quot;myUfdcUploadPlaceHolder&quot; )in the fileUploadForm on the main ASPX page</param>
        /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering </param>
        public void Add_Controls(PlaceHolder placeHolder, PlaceHolder uploadFilesPlaceHolder, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("MySobek_HtmlSubwriter.Add_Controls", "Build my sobek viewer and add controls");

            // Add the banner now
            if ((currentMode.Logon_Required) || (mySobekViewer.Contains_Popup_Forms))
            {
                // Start to build the result to write, with the banner
                StringBuilder header_builder = new StringBuilder();
                StringWriter  header_writer  = new StringWriter(header_builder);
                Add_Banner(header_writer);

                // NEED TO ADD THE REGULAR BANNER HERE FOR My FOLDER STUFF
                if (currentMode.My_Sobek_Type == My_Sobek_Type_Enum.Folder_Management)
                {
                    Write_General_View_Type_Selectors(header_writer);
                }

                // Now, add this literal
                LiteralControl header_literal = new LiteralControl(header_builder.ToString());
                placeHolder.Controls.Add(header_literal);
            }

            // Add any controls needed
            mySobekViewer.Add_Controls(placeHolder, uploadFilesPlaceHolder, Tracer);
        }
Beispiel #2
0
        /// <summary> Adds any necessary controls to one of two place holders on the main ASPX page </summary>
        /// <param name="MainPlaceHolder"> Main place holder ( &quot;mainPlaceHolder&quot; ) in the itemNavForm form, widely used throughout the application</param>
        /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering </param>
        public void Add_Controls(PlaceHolder MainPlaceHolder, Custom_Tracer Tracer)
        {
            Tracer.Add_Trace("MySobek_HtmlSubwriter.Add_Controls", "Build my sobek viewer and add controls");

            // Add any controls needed
            if (mySobekViewer != null)
            {
                mySobekViewer.Add_Controls(MainPlaceHolder, Tracer);
            }
        }