コード例 #1
0
        }// CCustomCodeGroupProp

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CCustomCodeGroupProp));
            this.m_txtXML           = new System.Windows.Forms.TextBox();
            this.m_lblHelp          = new System.Windows.Forms.Label();
            this.m_lblURL           = new System.Windows.Forms.Label();
            this.m_txtXML.Location  = ((System.Drawing.Point)(resources.GetObject("m_txtXML.Location")));
            this.m_txtXML.Multiline = true;
            this.m_txtXML.Size      = ((System.Drawing.Size)(resources.GetObject("m_txtXML.Size")));
            this.m_txtXML.TabStop   = false;
            m_txtXML.Name           = "XML";
            this.m_lblHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblHelp.Location")));
            this.m_lblHelp.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblHelp.Size")));
            this.m_lblHelp.TabIndex = ((int)(resources.GetObject("m_lblHelp.TabIndex")));
            this.m_lblHelp.Text     = resources.GetString("m_lblHelp.Text");
            m_lblHelp.Name          = "Help";
            this.m_lblURL.Location  = ((System.Drawing.Point)(resources.GetObject("m_lblURL.Location")));
            this.m_lblURL.Size      = ((System.Drawing.Size)(resources.GetObject("m_lblURL.Size")));
            this.m_lblURL.TabIndex  = ((int)(resources.GetObject("m_lblURL.TabIndex")));
            this.m_lblURL.Text      = resources.GetString("m_lblURL.Text");
            m_lblURL.Name           = "Help2";
            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_txtXML,
                                                                       this.m_lblURL,
                                                                       this.m_lblHelp });
            // Some 'tweaks'
            m_txtXML.ReadOnly = true;
            // Fill in the data
            PutValuesinPage();
            return(1);
        }// InsertPropSheetPageControls
コード例 #2
0
        }// CTrustAppWiz2

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CTrustAppWiz2));
            this.m_txtFilename          = new System.Windows.Forms.TextBox();
            this.m_btnBrowse            = new System.Windows.Forms.Button();
            this.m_lblEnterPath         = new System.Windows.Forms.Label();
            this.m_txtFilename.Location = ((System.Drawing.Point)(resources.GetObject("m_txtFilename.Location")));
            this.m_txtFilename.Size     = ((System.Drawing.Size)(resources.GetObject("m_txtFilename.Size")));
            this.m_txtFilename.TabIndex = ((int)(resources.GetObject("m_txtFilename.TabIndex")));
            m_txtFilename.Name          = "Filename";

            this.m_btnBrowse.Location    = ((System.Drawing.Point)(resources.GetObject("m_btnBrowse.Location")));
            this.m_btnBrowse.Size        = ((System.Drawing.Size)(resources.GetObject("m_btnBrowse.Size")));
            this.m_btnBrowse.TabIndex    = ((int)(resources.GetObject("m_btnBrowse.TabIndex")));
            this.m_btnBrowse.Text        = resources.GetString("m_btnBrowse.Text");
            m_btnBrowse.Name             = "Browse";
            this.m_lblEnterPath.Location = ((System.Drawing.Point)(resources.GetObject("m_lblEnterPath.Location")));
            this.m_lblEnterPath.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblEnterPath.Size")));
            this.m_lblEnterPath.TabIndex = ((int)(resources.GetObject("m_lblEnterPath.TabIndex")));
            this.m_lblEnterPath.Text     = resources.GetString("m_lblEnterPath.Text");
            m_lblEnterPath.Name          = "Help";
            PageControls.AddRange(new System.Windows.Forms.Control[] {
                this.m_lblEnterPath,
                this.m_txtFilename,
                this.m_btnBrowse
            });

            // Put in some of our own tweaks now
            m_btnBrowse.Click         += new EventHandler(onBrowse);
            m_txtFilename.TextChanged += new EventHandler(onTextChange);
            return(1);
        }// InsertPropSheetPageControls
コード例 #3
0
        }// CConfigAssemGeneralProp

        //-------------------------------------------------
        // InsertPropSheetPageControls
        //
        // This function will create all the winforms controls
        // and parent them to the passed-in Window Handle.
        //
        // Note: For some winforms controls, such as radio buttons
        // and datagrids, we need to create a container, parent the
        // container to our window handle, and then parent our
        // winform controls to the container.
        //-------------------------------------------------
        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CConfigAssemGeneralProp));
            this.m_chkPubPolicy           = new System.Windows.Forms.CheckBox();
            this.m_lblPublicKeyToken      = new System.Windows.Forms.Label();
            this.m_txtPublicKeyToken      = new System.Windows.Forms.TextBox();
            this.m_lblPublisherPolicyHelp = new System.Windows.Forms.Label();
            this.m_txtAssemName           = new System.Windows.Forms.TextBox();
            this.m_lblAssemName           = new System.Windows.Forms.Label();
            m_lblHelp = new Label();
            this.m_chkPubPolicy.Location           = ((System.Drawing.Point)(resources.GetObject("m_chkPubPolicy.Location")));
            this.m_chkPubPolicy.Size               = ((System.Drawing.Size)(resources.GetObject("m_chkPubPolicy.Size")));
            this.m_chkPubPolicy.TabIndex           = ((int)(resources.GetObject("m_chkPubPolicy.TabIndex")));
            this.m_chkPubPolicy.Text               = resources.GetString("m_chkPubPolicy.Text");
            m_chkPubPolicy.Name                    = "PublisherPolicy";
            this.m_lblPublicKeyToken.Location      = ((System.Drawing.Point)(resources.GetObject("m_lblPublicKeyToken.Location")));
            this.m_lblPublicKeyToken.Size          = ((System.Drawing.Size)(resources.GetObject("m_lblPublicKeyToken.Size")));
            this.m_lblPublicKeyToken.TabIndex      = ((int)(resources.GetObject("m_lblPublicKeyToken.TabIndex")));
            this.m_lblPublicKeyToken.Text          = resources.GetString("m_lblPublicKeyToken.Text");
            m_lblPublicKeyToken.Name               = "PublicKeyTokenLabel";
            this.m_txtPublicKeyToken.BorderStyle   = System.Windows.Forms.BorderStyle.None;
            this.m_txtPublicKeyToken.Location      = ((System.Drawing.Point)(resources.GetObject("m_txtPublicKeyToken.Location")));
            this.m_txtPublicKeyToken.ReadOnly      = true;
            this.m_txtPublicKeyToken.Size          = ((System.Drawing.Size)(resources.GetObject("m_txtPublicKeyToken.Size")));
            this.m_txtPublicKeyToken.TabStop       = false;
            m_txtPublicKeyToken.Name               = "PublicKeyToken";
            this.m_lblPublisherPolicyHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblPublisherPolicyHelp.Location")));
            this.m_lblPublisherPolicyHelp.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblPublisherPolicyHelp.Size")));
            this.m_lblPublisherPolicyHelp.TabIndex = ((int)(resources.GetObject("m_lblPublisherPolicyHelp.TabIndex")));
            this.m_lblPublisherPolicyHelp.Text     = resources.GetString("m_lblPublisherPolicyHelp.Text");
            m_lblPublisherPolicyHelp.Name          = "PublisherPolicyHelp";
            this.m_lblHelp.Location                = ((System.Drawing.Point)(resources.GetObject("m_lblPublisherPolicy.Location")));
            this.m_lblHelp.Size                    = ((System.Drawing.Size)(resources.GetObject("m_lblPublisherPolicy.Size")));
            this.m_lblHelp.TabIndex                = ((int)(resources.GetObject("m_lblPublisherPolicy.TabIndex")));
            this.m_lblHelp.Text                    = resources.GetString("m_lblPublisherPolicy.Text");
            m_lblHelp.Name = "Help";
            this.m_txtAssemName.BorderStyle = System.Windows.Forms.BorderStyle.None;
            this.m_txtAssemName.Location    = ((System.Drawing.Point)(resources.GetObject("m_txtAssemName.Location")));
            this.m_txtAssemName.ReadOnly    = true;
            this.m_txtAssemName.Size        = ((System.Drawing.Size)(resources.GetObject("m_txtAssemName.Size")));
            this.m_txtAssemName.TabStop     = false;
            m_txtAssemName.Name             = "AssemblyName";
            this.m_lblAssemName.Location    = ((System.Drawing.Point)(resources.GetObject("m_lblAssemName.Location")));
            this.m_lblAssemName.Size        = ((System.Drawing.Size)(resources.GetObject("m_lblAssemName.Size")));
            this.m_lblAssemName.Text        = resources.GetString("m_lblAssemName.Text");
            m_lblAssemName.Name             = "AssemblyNameLabel";
            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_chkPubPolicy,
                                                                       this.m_lblPublisherPolicyHelp,
                                                                       this.m_txtPublicKeyToken,
                                                                       this.m_txtAssemName,
                                                                       this.m_lblPublicKeyToken,
                                                                       this.m_lblAssemName,
                                                                       m_lblHelp });

            // Fill in the data
            PutValuesinPage();
            m_chkPubPolicy.CheckStateChanged += new EventHandler(onChange);
            m_txtAssemName.Select(0, 0);
            return(1);
        }// InsertPropSheetPageControls
コード例 #4
0
    protected override void InitializeComponent()
    {
        base.InitializeComponent();
        txtInsertTable = new TextBox();
        //txtInsertTable.Attributes.Add("style", "display:none");
        txtInsertTable.TextMode = TextBoxMode.MultiLine;
        txtInsertTable.ID       = TXT_INSERT_TABLE;
        thirdPanel.Controls.Add(txtInsertTable);


        btnInsertTable          = new Button();
        btnInsertTable.Text     = "Insert";
        btnInsertTable.CssClass = "otherButton";
        btnInsertTable.Click   += new EventHandler(btnInsertTable_Click);
        thirdPanel.Controls.Add(btnInsertTable);

        // panel insert multiple warning
        Panel fourthPanel = GetFourthPanel();
        Panel pnlInfo     = PageControls.generateInfoPanel();

        fourthPanel.Controls.Add(pnlInfo);
        btnInsertMultipleWarningOk = pnlInfo.FindControl(PageControls.BTN_INSERT_MULTIPLE_WARNING_OK) as Button;
        extenderInfo = PageControls.generateInfoExtender();
        fourthPanel.Controls.Add(extenderInfo);
        LinkButton btnDummy3 = new LinkButton();

        btnDummy3.ID = PageControls.BTN_DUMMY_INFO;
        fourthPanel.Controls.Add(btnDummy3);
    }
コード例 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.Cookies["adminid"] != null && Request.Cookies["adminid"].Value != "")
            {
                intProfile = Int32.Parse(Request.Cookies["adminid"].Value);
            }
            else
            {
                Reload();
            }
            Users       oUser       = new Users(intProfile, dsn);
            Permissions oPermission = new Permissions(intProfile, dsn);
            Settings    oSetting    = new Settings(intProfile, dsn);

            intPlaces = 3;
            if (Request.QueryString["id"] != null && Request.QueryString["id"] != "" && Request.QueryString["type"] != null && Request.QueryString["type"] != "")
            {
                oControl = new Controls(intProfile, dsn);
                oPage    = new PageControls(intProfile, dsn);
                oSchema  = new Schema(intProfile, dsn);
                ddlControl.DataTextField  = "name";
                ddlControl.DataValueField = "controlid";
                ddlControl.DataSource     = oControl.Gets(1, 1);
                ddlControl.DataBind();
                ddlControl.Items.Insert(0, "-- SELECT --");
                if (!IsPostBack && (Request.QueryString["type"] == "0" || Request.QueryString["type"] == "1"))
                {
                    lblId.Text   = Request.QueryString["id"];
                    lblType.Text = Request.QueryString["type"];
                    LoadButtons();
                }
                btnClose.Attributes.Add("onclick", "return HidePanel();");
            }
        }
コード例 #6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            AuthenticateUser();
            Control oControl;

            intProfile = Int32.Parse(Request.Cookies["profileid"].Value);
            int intPage = 0;

            if (Request.QueryString["page"] != null && Request.QueryString["page"] != "")
            {
                intPage = Int32.Parse(Request.QueryString["page"]);
            }
            oPage        = new Pages(intProfile, dsn);
            oPageControl = new PageControls(intProfile, dsn);
            if (intPage > 0)
            {
                this.Page.Title = "ClearView | " + oPage.Get(intPage, "browsertitle");
                // Load Page Controls
                DataSet ds = oPageControl.GetPage(intPage, 1);
                foreach (DataRow dr in ds.Tables[0].Rows)
                {
                    oControl = (Control)LoadControl(Request.ApplicationPath + dr["path"].ToString());
                    PH3.Controls.Add(oControl);
                }
            }
        }
コード例 #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.Cookies["profileid"] != null && Request.Cookies["profileid"].Value != "")
     {
         intProfile   = Int32.Parse(Request.Cookies["profileid"].Value);
         oApplication = new Applications(intProfile, dsn);
         oPage        = new Pages(intProfile, dsn);
         oPageControl = new PageControls(intProfile, dsn);
         if (Request.QueryString["applicationid"] != null && Request.QueryString["applicationid"] != "")
         {
             intApplication = Int32.Parse(Request.QueryString["applicationid"]);
         }
         if (Request.QueryString["pageid"] != null && Request.QueryString["pageid"] != "")
         {
             intPage = Int32.Parse(Request.QueryString["pageid"]);
         }
         if (Request.Cookies["application"] != null && Request.Cookies["application"].Value != "")
         {
             intApplication = Int32.Parse(Request.Cookies["application"].Value);
         }
         RegisterJavaScript();
         RegisterStyleSheets();
         this.Visible = true;
     }
     else //not logged in, so don't display menu bar
     {
         this.Visible = false;
     }
 }
コード例 #8
0
 public Page(int id, string name)
     : base(id, name)
 {
     Properties = new PageProperties(this);
     Properties.ActionList.Page = this;
     Controls = new PageControls(this);
     Code     = new Code.Variable.Code(this);
 }
コード例 #9
0
        internal RequestPage(IHasRequestPage container)
        {
            Container = container;

            Properties = new RequestPageProperties(this);
            Properties.ActionList.Page = this;

            Controls = new PageControls(this);
        }
コード例 #10
0
        }// CTrustAppWiz8

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CTrustAppWiz8));
            this.m_dg                   = new System.Windows.Forms.DataGrid();
            this.m_dg.Location          = ((System.Drawing.Point)(resources.GetObject("m_dg.Location")));
            this.m_dg.ReadOnly          = true;
            this.m_dg.RowHeadersVisible = false;
            this.m_dg.Size              = ((System.Drawing.Size)(resources.GetObject("m_dg.Size")));
            this.m_dg.TabIndex          = ((int)(resources.GetObject("m_dg.TabIndex")));
            m_dg.Name                   = "Grid";
            m_dg.BackgroundColor        = Color.White;

            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_dg });

            // Do some tweaking...
            m_dg.ReadOnly       = true;
            m_dg.CaptionVisible = false;

            // Now tell our datagrid how to display its columns
            DataGridTableStyle dgts = new DataGridTableStyle();

            dgts.MappingName       = "Stuff";
            dgts.RowHeadersVisible = false;
            dgts.AllowSorting      = false;

            m_dg.TableStyles.Add(dgts);

            String[] sColNames = new String[] { CResourceStore.GetString("CTrustAppWiz8:NameColumn"),
                                                CResourceStore.GetString("CTrustAppWiz8:ValueColumn") };

            int[] nColWidths = new int[] {
                ScaleWidth(CResourceStore.GetInt("CTrustAppWiz8:NameColumnWidth")),
                ScaleWidth(CResourceStore.GetInt("CTrustAppWiz8:ValueColumnWidth"))
            };



            for (int i = 0; i < sColNames.Length; i++)
            {
                DataGridTextBoxColumn dgtbc = new DataGridTextBoxColumn();

                // Set up the column info for the Property column
                dgtbc.MappingName = sColNames[i];
                dgtbc.HeaderText  = sColNames[i];
                dgtbc.ReadOnly    = true;
                dgtbc.Width       = nColWidths[i];
                dgts.GridColumnStyles.Add(dgtbc);
            }



            CreateTable();

            return(1);
        }// InsertPropSheetPageControls
コード例 #11
0
        public static void Write(this PageControls pageControls, CSideWriter writer, int propertyIndentation)
        {
            writer.BeginSection("CONTROLS");

            foreach (var pageControl in pageControls)
            {
                pageControl.Write(writer, propertyIndentation);
            }

            writer.EndSection();
        }
コード例 #12
0
        }// CCreateDeploymentPackageWiz3

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CCreateDeploymentPackageWiz3));
            this.m_lblSummary          = new System.Windows.Forms.Label();
            this.m_lblSummary.Location = ((System.Drawing.Point)(resources.GetObject("m_lblSummary.Location")));
            this.m_lblSummary.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblSummary.Size")));
            this.m_lblSummary.TabIndex = ((int)(resources.GetObject("m_lblSummary.TabIndex")));
            this.m_lblSummary.Text     = resources.GetString("m_lblSummary.Text");
            m_lblSummary.Name          = "Summary";
            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblSummary });
            return(1);
        } // InsertPropSheetPageControls
コード例 #13
0
        }// CTrustAppWiz4

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CTrustAppWiz4));
            this.m_lblHelpFT        = new System.Windows.Forms.LinkLabel();
            this.m_chkGiveFull      = new System.Windows.Forms.CheckBox();
            this.m_lblDes           = new System.Windows.Forms.Label();
            this.m_gbIncreaseToFull = new System.Windows.Forms.GroupBox();
            this.m_lblDesOfFT       = new System.Windows.Forms.Label();

            this.m_lblHelpFT.Location = ((System.Drawing.Point)(resources.GetObject("m_lblHelpFT.Location")));
            this.m_lblHelpFT.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblHelpFT.Size")));
            this.m_lblHelpFT.TabIndex = ((int)(resources.GetObject("m_lblHelpFT.TabIndex")));
            this.m_lblHelpFT.Text     = resources.GetString("m_lblHelpFT.Text");
            m_lblHelpFT.Name          = "FullTrustHelp";
            // Change the color of the linklabel
            m_lblHelpFT.LinkColor       = m_lblHelpFT.ActiveLinkColor = m_lblHelpFT.VisitedLinkColor = SystemColors.ActiveCaption;
            this.m_chkGiveFull.Location = ((System.Drawing.Point)(resources.GetObject("m_chkGiveFull.Location")));
            this.m_chkGiveFull.Size     = ((System.Drawing.Size)(resources.GetObject("m_chkGiveFull.Size")));
            this.m_chkGiveFull.TabIndex = ((int)(resources.GetObject("m_chkGiveFull.TabIndex")));
            this.m_chkGiveFull.Text     = resources.GetString("m_chkGiveFull.Text");
            m_chkGiveFull.Name          = "GiveFullTrust";
            this.m_lblDes.Location      = ((System.Drawing.Point)(resources.GetObject("m_lblDes.Location")));
            this.m_lblDes.Size          = ((System.Drawing.Size)(resources.GetObject("m_lblDes.Size")));
            this.m_lblDes.TabIndex      = ((int)(resources.GetObject("m_lblDes.TabIndex")));
            this.m_lblDes.Text          = resources.GetString("m_lblDes.Text");
            m_lblDes.Name = "Help";
            this.m_gbIncreaseToFull.Location = ((System.Drawing.Point)(resources.GetObject("m_gbIncreaseToFull.Location")));
            this.m_gbIncreaseToFull.Size     = ((System.Drawing.Size)(resources.GetObject("m_gbIncreaseToFull.Size")));
            this.m_gbIncreaseToFull.TabIndex = ((int)(resources.GetObject("m_gbIncreaseToFull.TabIndex")));
            this.m_gbIncreaseToFull.TabStop  = false;
            this.m_gbIncreaseToFull.Text     = resources.GetString("m_gbIncreaseToFull.Text");
            m_gbIncreaseToFull.Name          = "IncreaseToFullBox";
            this.m_lblDesOfFT.Location       = ((System.Drawing.Point)(resources.GetObject("m_lblDesOfFT.Location")));
            this.m_lblDesOfFT.Size           = ((System.Drawing.Size)(resources.GetObject("m_lblDesOfFT.Size")));
            this.m_lblDesOfFT.TabIndex       = ((int)(resources.GetObject("m_lblDesOfFT.TabIndex")));
            this.m_lblDesOfFT.Text           = resources.GetString("m_lblDesOfFT.Text");
            m_lblDesOfFT.Name = "FullTrustDescription";

            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_gbIncreaseToFull,
                                                                       this.m_lblDes });



            this.m_gbIncreaseToFull.Controls.AddRange(new System.Windows.Forms.Control[] { this.m_chkGiveFull,
                                                                                           this.m_lblHelpFT,
                                                                                           this.m_lblDesOfFT });

            m_lblHelpFT.Click += new EventHandler(onHelpFT);
            m_chkGiveFull.CheckStateChanged += new EventHandler(onCheckChange);

            // Put in some of our own tweaks now
            return(1);
        }// InsertPropSheetPageControls
コード例 #14
0
        }// CTrustAppWiz7

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CTrustAppWiz7));
            this.m_lblHelp          = new System.Windows.Forms.Label();
            this.m_lblHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblHelp.Location")));
            this.m_lblHelp.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblHelp.Size")));
            this.m_lblHelp.TabIndex = ((int)(resources.GetObject("m_lblHelp.TabIndex")));
            this.m_lblHelp.Text     = resources.GetString("m_lblHelp.Text");
            m_lblHelp.Name          = "Help";
            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblHelp });
            return(1);
        } // InsertPropSheetPageControls
コード例 #15
0
        public static void Add(this PageControls pageControls, PageControlBase item, Position?position)
        {
            switch (position.GetValueOrDefault(Position.LastWithinContainer))
            {
            case Position.FirstWithinContainer:
                pageControls.Insert(0, item);
                break;

            case Position.LastWithinContainer:
                pageControls.Add(item);
                break;
            }
        }
コード例 #16
0
        }// CNewCodeGroupWiz4

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CNewCodeGroupWiz4));
            this.m_chkExclusive           = new System.Windows.Forms.CheckBox();
            this.m_chkLevelFinal          = new System.Windows.Forms.CheckBox();
            this.m_lblHelp                = new System.Windows.Forms.Label();
            this.m_lblExclusive           = new System.Windows.Forms.Label();
            this.m_lblLevelFinal          = new System.Windows.Forms.Label();
            this.m_lblTwoOptions          = new System.Windows.Forms.Label();
            this.m_chkExclusive.Location  = ((System.Drawing.Point)(resources.GetObject("m_chkExclusive.Location")));
            this.m_chkExclusive.Size      = ((System.Drawing.Size)(resources.GetObject("m_chkExclusive.Size")));
            this.m_chkExclusive.TabIndex  = ((int)(resources.GetObject("m_chkExclusive.TabIndex")));
            this.m_chkExclusive.Text      = resources.GetString("m_chkExclusive.Text");
            m_chkExclusive.Name           = "Exclusive";
            m_chkExclusive.Visible        = false;
            this.m_chkLevelFinal.Location = ((System.Drawing.Point)(resources.GetObject("m_chkLevelFinal.Location")));
            this.m_chkLevelFinal.Size     = ((System.Drawing.Size)(resources.GetObject("m_chkLevelFinal.Size")));
            this.m_chkLevelFinal.TabIndex = ((int)(resources.GetObject("m_chkLevelFinal.TabIndex")));
            this.m_chkLevelFinal.Text     = resources.GetString("m_chkLevelFinal.Text");
            m_chkLevelFinal.Name          = "LevelFinal";
            m_chkLevelFinal.Visible       = false;
            this.m_lblHelp.Location       = ((System.Drawing.Point)(resources.GetObject("m_lblHelp.Location")));
            this.m_lblHelp.Size           = ((System.Drawing.Size)(resources.GetObject("m_lblHelp.Size")));
            this.m_lblHelp.TabIndex       = ((int)(resources.GetObject("m_lblHelp.TabIndex")));
            this.m_lblHelp.Text           = resources.GetString("m_lblHelp.Text");
            m_lblHelp.Name                = "Help";
            this.m_lblExclusive.Location  = ((System.Drawing.Point)(resources.GetObject("m_lblExclusive.Location")));
            this.m_lblExclusive.Size      = ((System.Drawing.Size)(resources.GetObject("m_lblExclusive.Size")));
            this.m_lblExclusive.TabIndex  = ((int)(resources.GetObject("m_lblExclusive.TabIndex")));
            this.m_lblExclusive.Text      = resources.GetString("m_lblExclusive.Text");
            m_lblExclusive.Name           = "ExclusiveLabel";
            this.m_lblLevelFinal.Location = ((System.Drawing.Point)(resources.GetObject("m_lblLevelFinal.Location")));
            this.m_lblLevelFinal.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblLevelFinal.Size")));
            this.m_lblLevelFinal.TabIndex = ((int)(resources.GetObject("m_lblLevelFinal.TabIndex")));
            this.m_lblLevelFinal.Text     = resources.GetString("m_lblLevelFinal.Text");
            m_lblLevelFinal.Name          = "LevelFinalLabel";
            this.m_lblTwoOptions.Location = ((System.Drawing.Point)(resources.GetObject("m_lblTwoOptions.Location")));
            this.m_lblTwoOptions.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblTwoOptions.Size")));
            this.m_lblTwoOptions.TabIndex = ((int)(resources.GetObject("m_lblTwoOptions.TabIndex")));
            this.m_lblTwoOptions.Text     = resources.GetString("m_lblTwoOptions.Text");
            m_lblTwoOptions.Name          = "OptionsLabel";
            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_chkLevelFinal,
                                                                       this.m_lblLevelFinal,
                                                                       this.m_chkExclusive,
                                                                       this.m_lblExclusive,
                                                                       this.m_lblTwoOptions,
                                                                       this.m_lblHelp });
            return(1);
        }// InsertPropSheetPageControls
コード例 #17
0
        public static T AddPageControlAtPosition <T>(this PageControls pageControls, T pageControl, Position position) where T : PageControlBase
        {
            switch (position)
            {
            case Position.FirstWithinContainer:
                pageControls.Insert(0, pageControl);
                break;

            case Position.LastWithinContainer:
                pageControls.Add(pageControl);
                break;
            }

            return(pageControl);
        }
コード例 #18
0
        }// CSinglePermissionSetProp

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CSinglePermissionSetProp));
            this.m_txtPSetName          = new System.Windows.Forms.TextBox();
            this.m_lblPSetDes           = new System.Windows.Forms.Label();
            this.m_lblPSetName          = new System.Windows.Forms.Label();
            this.m_txtPSetDes           = new System.Windows.Forms.TextBox();
            this.m_txtPSetName.Location = ((System.Drawing.Point)(resources.GetObject("m_txtPSetName.Location")));
            this.m_txtPSetName.Size     = ((System.Drawing.Size)(resources.GetObject("m_txtPSetName.Size")));
            this.m_txtPSetName.TabIndex = ((int)(resources.GetObject("m_txtPSetName.TabIndex")));
            m_txtPSetName.Name          = "Name";
            this.m_lblPSetDes.Location  = ((System.Drawing.Point)(resources.GetObject("m_lblPSetDes.Location")));
            this.m_lblPSetDes.Size      = ((System.Drawing.Size)(resources.GetObject("m_lblPSetDes.Size")));
            this.m_lblPSetDes.TabIndex  = ((int)(resources.GetObject("m_lblPSetDes.TabIndex")));
            this.m_lblPSetDes.Text      = resources.GetString("m_lblPSetDes.Text");
            m_lblPSetDes.Name           = "DescriptionLabel";
            this.m_lblPSetName.Location = ((System.Drawing.Point)(resources.GetObject("m_lblPSetName.Location")));
            this.m_lblPSetName.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblPSetName.Size")));
            this.m_lblPSetName.TabIndex = ((int)(resources.GetObject("m_lblPSetName.TabIndex")));
            this.m_lblPSetName.Text     = resources.GetString("m_lblPSetName.Text");
            m_lblPSetName.Name          = "NameLabel";
            this.m_txtPSetDes.Location  = ((System.Drawing.Point)(resources.GetObject("m_txtPSetDes.Location")));
            this.m_txtPSetDes.Multiline = true;
            this.m_txtPSetDes.Size      = ((System.Drawing.Size)(resources.GetObject("m_txtPSetDes.Size")));
            this.m_txtPSetDes.TabIndex  = ((int)(resources.GetObject("m_txtPSetDes.TabIndex")));
            m_txtPSetDes.Name           = "Description";
            PageControls.AddRange(new System.Windows.Forms.Control[] {
                this.m_lblPSetName,
                this.m_txtPSetName,
                this.m_lblPSetDes,
                this.m_txtPSetDes
            });

            // Fill in the data
            PutValuesinPage();

            m_txtPSetName.TextChanged += new EventHandler(onChange);
            m_txtPSetDes.TextChanged  += new EventHandler(onChange);

            m_txtPSetName.ReadOnly = m_fReadOnly;
            m_txtPSetDes.ReadOnly  = m_fReadOnly;

            m_txtPSetName.Select(0, 0);
            m_txtPSetDes.Select(0, 0);


            return(1);
        }// InsertPropSheetPageControls
コード例 #19
0
    /*********************************************/
    // stuff for table copy
    private void PlacePnlCopyTable()
    {
        Control buttondiv = GetSortButtonContainer();
        //NEED TO WRAP THIS IN LABEL FOR ICON/BUTTON COMBO, ASSIGN CSS CLASS
        Button btnCopyTable = new Button();

        btnCopyTable.Text = "Copy Table";  //  size ??
        //btnCopyTable.Height = 26;
        btnCopyTable.ID = PageControls.BTN_COPY_TABLE;
        btnCopyTable.ID = PageControls.BTN_COPY_TABLE;
        buttondiv.Controls.Add(btnCopyTable);

        Panel copyTableContainer = GetCopyTableContainer();

        if (copyTableContainer != null)
        {
            pnlCopyTable = PageControls.generateCopyPanel();

            copyTableContainer.Controls.Add(pnlCopyTable);
            rdbtnTableWithHeaders                    = pnlCopyTable.FindControl(PageControls.RDBTN_WITH_HEADER) as RadioButton;
            rdbtnTableWithoutHeaders                 = pnlCopyTable.FindControl(PageControls.RDBTN_WITHOUT_HEADER) as RadioButton;
            rdbtnTableWithHeaders.CheckedChanged    += new EventHandler(rdbtnTable_CheckedChanged);
            rdbtnTableWithoutHeaders.CheckedChanged += new EventHandler(rdbtnTable_CheckedChanged);

            // these two lines don't work - won't cause correct postback
            //rdbtnTableWithHeaders.Attributes.Add("onClick", "HidePopup('" + PageControls.COPY_BEHAVIOR + "');  __doPostBack(this.id,'');");
            //rdbtnTableWithoutHeaders.Attributes.Add("onClick", "HidePopup('" + PageControls.COPY_BEHAVIOR + "');  __doPostBack(radioButton.id,'');");

            boxCheckAll  = pnlCopyTable.FindControl(PageControls.CHECK_SELECT_ALL) as CheckBox;
            txtCopyTable = pnlCopyTable.FindControl(PageControls.INPUT_COPY_TABLE) as TextBox;
            boxCheckAll.Attributes.Add("onclick", "selectTable('" + txtCopyTable.ClientID + "', '" + boxCheckAll.ClientID + "')");
            Button btnCopyDone = pnlCopyTable.FindControl(PageControls.BTN_DONE) as Button;
            btnCopyDone.Click        += new EventHandler(btnCopyDone_Click);
            btnCopyDone.OnClientClick = "HidePopup('" + PageControls.COPY_BEHAVIOR + "'); return true;";
            extenderCopy = PageControls.generateCopyExtender();
            copyTableContainer.Controls.Add(extenderCopy);
        }
    }
コード例 #20
0
        }// CCreateDeploymentPackageWiz2

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CCreateDeploymentPackageWiz2));
            this.m_lblHelpText            = new System.Windows.Forms.Label();
            this.m_chkSavePolicy          = new System.Windows.Forms.CheckBox();
            this.m_lblHelpText.Location   = ((System.Drawing.Point)(resources.GetObject("m_lblHelpText.Location")));
            this.m_lblHelpText.Size       = ((System.Drawing.Size)(resources.GetObject("m_lblHelpText.Size")));
            this.m_lblHelpText.TabIndex   = ((int)(resources.GetObject("m_lblHelpText.TabIndex")));
            this.m_lblHelpText.Text       = resources.GetString("m_lblHelpText.Text");
            m_lblHelpText.Name            = "Help";
            this.m_chkSavePolicy.Location = ((System.Drawing.Point)(resources.GetObject("m_chkSavePolicy.Location")));
            this.m_chkSavePolicy.Size     = ((System.Drawing.Size)(resources.GetObject("m_chkSavePolicy.Size")));
            this.m_chkSavePolicy.TabIndex = ((int)(resources.GetObject("m_chkSavePolicy.TabIndex")));
            this.m_chkSavePolicy.Text     = resources.GetString("m_chkSavePolicy.Text");
            m_chkSavePolicy.Name          = "SavePolicy";
            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_chkSavePolicy,
                                                                       this.m_lblHelpText });

            // The checkbox should be off by default
            m_chkSavePolicy.Checked = false;
            m_chkSavePolicy.Click  += new EventHandler(onSavePolicyClick);
            return(1);
        }// InsertPropSheetPageControls
コード例 #21
0
        }// CNewCodeGroupWiz3

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CNewCodeGroupWiz3));
            this.m_cbPermissionSets       = new System.Windows.Forms.ComboBox();
            this.m_radCreatePermissionSet = new System.Windows.Forms.RadioButton();
            this.m_lblHelp        = new System.Windows.Forms.Label();
            this.m_radUseExisting = new System.Windows.Forms.RadioButton();
            this.m_cbPermissionSets.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.m_cbPermissionSets.DropDownWidth = 288;
            this.m_cbPermissionSets.Location      = ((System.Drawing.Point)(resources.GetObject("m_cbPermissionSets.Location")));
            this.m_cbPermissionSets.Size          = ((System.Drawing.Size)(resources.GetObject("m_cbPermissionSets.Size")));
            this.m_cbPermissionSets.TabIndex      = ((int)(resources.GetObject("m_cbPermissionSets.TabIndex")));
            m_cbPermissionSets.Name = "PermissionSets";
            this.m_radCreatePermissionSet.Location = ((System.Drawing.Point)(resources.GetObject("m_radCreatePermissionSet.Location")));
            this.m_radCreatePermissionSet.Size     = ((System.Drawing.Size)(resources.GetObject("m_radCreatePermissionSet.Size")));
            this.m_radCreatePermissionSet.TabIndex = ((int)(resources.GetObject("m_radCreatePermissionSet.TabIndex")));
            this.m_radCreatePermissionSet.Text     = resources.GetString("m_radCreatePermissionSet.Text");
            m_radCreatePermissionSet.Name          = "CreatePermissionSet";
            this.m_lblHelp.Location        = ((System.Drawing.Point)(resources.GetObject("m_lblHelp.Location")));
            this.m_lblHelp.Size            = ((System.Drawing.Size)(resources.GetObject("m_lblHelp.Size")));
            this.m_lblHelp.TabIndex        = ((int)(resources.GetObject("m_lblHelp.TabIndex")));
            this.m_lblHelp.Text            = resources.GetString("m_lblHelp.Text");
            m_lblHelp.Name                 = "Help";
            this.m_radUseExisting.Location = ((System.Drawing.Point)(resources.GetObject("m_radUseExisting.Location")));
            this.m_radUseExisting.Size     = ((System.Drawing.Size)(resources.GetObject("m_radUseExisting.Size")));
            this.m_radUseExisting.TabIndex = ((int)(resources.GetObject("m_radUseExisting.TabIndex")));
            this.m_radUseExisting.Text     = resources.GetString("m_radUseExisting.Text");
            m_radUseExisting.Name          = "UseExistingPermissionSet";
            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_radCreatePermissionSet,
                                                                       this.m_cbPermissionSets,
                                                                       this.m_radUseExisting,
                                                                       this.m_lblHelp });
            PutValuesinPage();

            return(1);
        }// InsertPropSheetPageControls
コード例 #22
0
ファイル: sys_leftnav.ascx.cs プロジェクト: radtek/ClearView
 protected void Page_Load(object sender, EventArgs e)
 {
     intProfile   = Int32.Parse(Request.Cookies["profileid"].Value);
     oApplication = new Applications(intProfile, dsn);
     oPage        = new Pages(intProfile, dsn);
     oPageControl = new PageControls(intProfile, dsn);
     if (Request.QueryString["applicationid"] != null && Request.QueryString["applicationid"] != "")
     {
         intApplication = Int32.Parse(Request.QueryString["applicationid"]);
     }
     if (Request.QueryString["pageid"] != null && Request.QueryString["pageid"] != "")
     {
         intPage = Int32.Parse(Request.QueryString["pageid"]);
     }
     if (Request.Cookies["application"] != null && Request.Cookies["application"].Value != "")
     {
         intApplication = Int32.Parse(Request.Cookies["application"].Value);
     }
     AddPages(intApplication);
     if (strMenu != "")
     {
         strMenu = "<div id=\"mainscroll\"><table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"default\">" + strMenu + "</table></div>";
     }
 }
コード例 #23
0
 protected void AddItemToInputObject(PageControlBase item, PageControls pageControls) => pageControls.Add(item, Position);
コード例 #24
0
        }// CCreateDeploymentPackageWiz1

        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CCreateDeploymentPackageWiz1));
            this.m_radEnterprise           = new System.Windows.Forms.RadioButton();
            this.m_lblChooseSecurityPolicy = new System.Windows.Forms.Label();
            this.m_btnBrowse                        = new System.Windows.Forms.Button();
            this.m_radMachine                       = new System.Windows.Forms.RadioButton();
            this.m_lblHelp                          = new System.Windows.Forms.Label();
            this.m_lblHelp2                         = new System.Windows.Forms.Label();
            this.m_lblChooseMSIFile                 = new System.Windows.Forms.Label();
            this.m_txtFilename                      = new System.Windows.Forms.TextBox();
            this.m_radUser                          = new System.Windows.Forms.RadioButton();
            this.m_radEnterprise.Location           = ((System.Drawing.Point)(resources.GetObject("m_radEnterprise.Location")));
            this.m_radEnterprise.Size               = ((System.Drawing.Size)(resources.GetObject("m_radEnterprise.Size")));
            this.m_radEnterprise.TabIndex           = ((int)(resources.GetObject("m_radEnterprise.TabIndex")));
            this.m_radEnterprise.Text               = resources.GetString("m_radEnterprise.Text");
            m_radEnterprise.Name                    = "Enterprise";
            this.m_lblChooseSecurityPolicy.Location = ((System.Drawing.Point)(resources.GetObject("m_lblChooseSecurityPolicy.Location")));
            this.m_lblChooseSecurityPolicy.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblChooseSecurityPolicy.Size")));
            this.m_lblChooseSecurityPolicy.TabIndex = ((int)(resources.GetObject("m_lblChooseSecurityPolicy.TabIndex")));
            this.m_lblChooseSecurityPolicy.Text     = resources.GetString("m_lblChooseSecurityPolicy.Text");
            m_lblChooseSecurityPolicy.Name          = "ChoosePolicyLabel";
            this.m_btnBrowse.Location               = ((System.Drawing.Point)(resources.GetObject("m_btnBrowse.Location")));
            this.m_btnBrowse.Size                   = ((System.Drawing.Size)(resources.GetObject("m_btnBrowse.Size")));
            this.m_btnBrowse.TabIndex               = ((int)(resources.GetObject("m_btnBrowse.TabIndex")));
            this.m_btnBrowse.Text                   = resources.GetString("m_btnBrowse.Text");
            m_btnBrowse.Name                        = "Browse";
            this.m_radMachine.Location              = ((System.Drawing.Point)(resources.GetObject("m_radMachine.Location")));
            this.m_radMachine.Size                  = ((System.Drawing.Size)(resources.GetObject("m_radMachine.Size")));
            this.m_radMachine.TabIndex              = ((int)(resources.GetObject("m_radMachine.TabIndex")));
            this.m_radMachine.Text                  = resources.GetString("m_radMachine.Text");
            m_radMachine.Name                       = "Machine";
            this.m_lblHelp.Location                 = ((System.Drawing.Point)(resources.GetObject("m_lblHelp.Location")));
            this.m_lblHelp.Size                     = ((System.Drawing.Size)(resources.GetObject("m_lblHelp.Size")));
            this.m_lblHelp.TabIndex                 = ((int)(resources.GetObject("m_lblHelp.TabIndex")));
            this.m_lblHelp.Text                     = resources.GetString("m_lblHelp.Text");
            m_lblHelp.Name                          = "Help";
            this.m_lblHelp2.Location                = ((System.Drawing.Point)(resources.GetObject("m_lblHelp2.Location")));
            this.m_lblHelp2.Size                    = ((System.Drawing.Size)(resources.GetObject("m_lblHelp2.Size")));
            this.m_lblHelp2.TabIndex                = ((int)(resources.GetObject("m_lblHelp2.TabIndex")));
            this.m_lblHelp2.Text                    = resources.GetString("m_lblHelp2.Text");
            m_lblHelp2.Name                         = "Help2";
            this.m_lblChooseMSIFile.Location        = ((System.Drawing.Point)(resources.GetObject("m_lblChooseMSIFile.Location")));
            this.m_lblChooseMSIFile.Size            = ((System.Drawing.Size)(resources.GetObject("m_lblChooseMSIFile.Size")));
            this.m_lblChooseMSIFile.TabIndex        = ((int)(resources.GetObject("m_lblChooseMSIFile.TabIndex")));
            this.m_lblChooseMSIFile.Text            = resources.GetString("m_lblChooseMSIFile.Text");
            m_lblChooseMSIFile.Name                 = "ChooseMSIFile";
            this.m_txtFilename.Location             = ((System.Drawing.Point)(resources.GetObject("m_txtFilename.Location")));
            this.m_txtFilename.Size                 = ((System.Drawing.Size)(resources.GetObject("m_txtFilename.Size")));
            this.m_txtFilename.TabIndex             = ((int)(resources.GetObject("m_txtFilename.TabIndex")));
            this.m_txtFilename.Text                 = resources.GetString("m_txtFilename.Text");
            m_txtFilename.Name                      = "Filename";
            this.m_radUser.Location                 = ((System.Drawing.Point)(resources.GetObject("m_radUser.Location")));
            this.m_radUser.Size                     = ((System.Drawing.Size)(resources.GetObject("m_radUser.Size")));
            this.m_radUser.TabIndex                 = ((int)(resources.GetObject("m_radUser.TabIndex")));
            this.m_radUser.Text                     = resources.GetString("m_radUser.Text");
            m_radUser.Name                          = "User";
            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblHelp2,
                                                                       this.m_btnBrowse,
                                                                       this.m_txtFilename,
                                                                       this.m_lblChooseMSIFile,
                                                                       this.m_radUser,
                                                                       this.m_radMachine,
                                                                       this.m_radEnterprise,
                                                                       this.m_lblChooseSecurityPolicy,
                                                                       this.m_lblHelp });

            PutValuesinPage();

            m_txtFilename.TextChanged += new EventHandler(onTextChange);
            m_btnBrowse.Click         += new EventHandler(onBrowse);

            return(1);
        }// InsertPropSheetPageControls
コード例 #25
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Control oControl;

            Page.Title = strTitle;
            if (Request.QueryString["down"] != null)
            {
                oControl = (Control)LoadControl("/controls/sys/sys_down.ascx");
                PH3.Controls.Add(oControl);
            }
            else
            {
                oControl = (Control)LoadControl("/controls/sys/sys_will_down.ascx");
                PHDown.Controls.Add(oControl);
                oControl = (Control)LoadControl("/controls/sys/sys_certificate.ascx");
                PHDown.Controls.Add(oControl);
                if (Request.Cookies["profileid"] == null || Request.Cookies["profileid"].Value == "")
                {
                    Response.Cookies["userloginreferrer"].Value = Request.Url.PathAndQuery;
                    oControl = (Control)LoadControl("/controls/sys/sys_login.ascx");
                    PH3.Controls.Add(oControl);
                }
                else
                {
                    intProfile = Int32.Parse(Request.Cookies["profileid"].Value);
                    oUser      = new Users(intProfile, dsn);
                    if (intProfile > 0)
                    {
                        lblName.Text = "<b>Welcome,</b> " + oUser.GetFullName(intProfile) + "&nbsp;&nbsp;(" + oUser.GetName(intProfile).ToUpper() + ")";
                    }
                    oPage           = new Pages(intProfile, dsn);
                    oApplication    = new Applications(intProfile, dsn);
                    oPageControl    = new PageControls(intProfile, dsn);
                    oAppPage        = new AppPages(intProfile, dsn);
                    oDesigner       = new Designer(intProfile, dsn);
                    oServiceRequest = new ServiceRequests(intProfile, dsn);
                    DataSet dsReturned = oServiceRequest.GetReturned(intProfile);
                    if (dsReturned.Tables[0].Rows.Count > 0)
                    {
                        oControl = (Control)LoadControl("/controls/sys/sys_returned.ascx");
                        PH3.Controls.Add(oControl);
                    }
                    oControl = (Control)LoadControl("/controls/sys/sys_topnav.ascx");
                    PH1.Controls.Add(oControl);
                    int intApplication = 0;
                    int intPage        = 0;
                    if (Request.QueryString["applicationid"] != null && Request.QueryString["applicationid"] != "")
                    {
                        intApplication = Int32.Parse(Request.QueryString["applicationid"]);
                    }
                    if (Request.QueryString["pageid"] != null && Request.QueryString["pageid"] != "")
                    {
                        intPage = Int32.Parse(Request.QueryString["pageid"]);
                    }
                    if (Request.Cookies["application"] != null && Request.Cookies["application"].Value != "")
                    {
                        intApplication = Int32.Parse(Request.Cookies["application"].Value);
                    }
                    string strVariables = "";
                    foreach (string strName in Request.QueryString)
                    {
                        if (strName != "pageid" && strName != "apppageid")
                        {
                            strVariables += (strVariables == "" ? "?" : "&") + strName + "=" + Request.QueryString[strName];
                        }
                    }
                    if (intPage > 0)
                    {
                        strPage = oPage.GetFullLink(intPage).Substring(1) + strVariables;
                    }
                    if (intApplication > 0 || intPage > 0)
                    {
                        if (intApplication > 0)
                        {
                            ds = oApplication.Get(intApplication);
                            if (ds.Tables[0].Rows.Count > 0)
                            {
                                this.Page.Title = "ClearView | " + ds.Tables[0].Rows[0]["name"].ToString();
                            }
                        }
                        if (intPage > 0)
                        {
                            this.Page.Title = "ClearView | " + oPage.Get(intPage, "browsertitle");
                            // Load Page Controls
                            ds = oPageControl.GetPage(intPage, 1);
                            if (ds.Tables[0].Rows.Count == 0)
                            {
                                oControl = (Control)LoadControl("/controls/sys/sys_pages.ascx");
                                PH3.Controls.Add(oControl);
                            }
                            else
                            {
                                ContentPlaceHolder oPlaceHolder;
                                oPlaceHolder = (ContentPlaceHolder)Master.FindControl("AllContent");
                                foreach (DataRow dr in ds.Tables[0].Rows)
                                {
                                    Control oTempControl = oPlaceHolder.FindControl(dr["placeholder"].ToString());
                                    if (oTempControl != null)
                                    {
                                        oControl = LoadControl(Request.ApplicationPath + dr["path"].ToString());
                                        oTempControl.Controls.Add(oControl);
                                    }
                                }
                            }
                        }
                        else
                        {
                            // Load User's Home Page Controls
                            oControl = (Control)LoadControl("/controls/sys/sys_personal.ascx");
                            PH3.Controls.Add(oControl);
                            //oControl = (Control)LoadControl("/controls/sys/sys_new.ascx");
                            oControl = (Control)LoadControl("/controls/sys/sys_whatsnew.ascx");
                            PH3.Controls.Add(oControl);
                            ds = oDesigner.Get(intProfile, 1);
                            foreach (DataRow dr in ds.Tables[0].Rows)
                            {
                                oControl = (Control)LoadControl(dr["path"].ToString());
                                PH3.Controls.Add(oControl);
                            }
                        }
                    }
                    else
                    {
                        // Load Available Applications
                        oControl = (Control)LoadControl("/controls/sys/sys_application.ascx");
                        PH3.Controls.Add(oControl);
                    }
                }
            }
            oControl = (Control)LoadControl("/controls/sys/sys_rotator_header.ascx");
            PH4.Controls.Add(oControl);
        }
        private static void ReSortControls()
        {
            MetadataDocumentManagement metaDataDocMgt = MetadataDocumentManagement.Instance;

            XmlNode cntrlNode          = metaDataDocMgt.XmlCurrentFormNode.SelectSingleNode(@"./a:Controls/a:ContentArea", metaDataDocMgt.XmlNamespaceMgt);
            XmlNode currCntrlContainer = null;

            if (cntrlNode != null)
            {
                XmlNode currNode = cntrlNode.SelectSingleNode(@"./a:Properties", metaDataDocMgt.XmlNamespaceMgt);
                foreach (KeyValuePair <string, ControlType1> control in controlsSequence)
                {
                    XmlNode controlNode;
                    switch (control.Value)
                    {
                    case ControlType1.OptionButton:
                        controlNode = cntrlNode.SelectSingleNode(@"./a:Control[./a:Properties/a:ID='" + control.Key + "']", metaDataDocMgt.XmlNamespaceMgt);
                        if (controlNode == null)
                        {
                            break;
                        }

                        String optionCaptionML = GetProperty(controlNode, "OptionCaptionML");
                        if (!string.IsNullOrEmpty(optionCaptionML))
                        {
                            bool breakWork = false;
                            ResortControlsForTrendscape(ref currCntrlContainer, cntrlNode, currNode, controlNode, ref breakWork, optionCaptionML);
                            if (breakWork)
                            {
                                break;
                            }
                        }

                        currCntrlContainer = null;
                        currNode           = cntrlNode.InsertAfter(controlNode.ParentNode.RemoveChild(controlNode), currNode);
                        break;

                    case ControlType1.TextBox:
                    case ControlType1.CheckBox:
                        controlNode = cntrlNode.SelectSingleNode(@"./a:Control[./a:Properties/a:ID='" + control.Key + "']", metaDataDocMgt.XmlNamespaceMgt);

                        // to avoid sorting problems with new groups.
                        if (controlNode == null)
                        {
                            XmlNode groupControl = cntrlNode.SelectSingleNode(@"./a:Group[./a:Control/a:Properties/a:ID='" + control.Key + "']", metaDataDocMgt.XmlNamespaceMgt);
                            if (groupControl == null)
                            {
                                break;
                            }

                            if (currNode.Equals(groupControl))
                            {
                                break;
                            }

                            XmlNode controlForCheck = cntrlNode.SelectSingleNode(@".//a:Control[./a:Properties/a:ID='" + control.Key + "']", metaDataDocMgt.XmlNamespaceMgt);
                            if ((groupControl.ChildNodes.Count > 2) && (!groupControl.ChildNodes[1].Equals(controlForCheck))) // so it's the first control in the group
                            {
                                break;
                            }

                            controlNode = groupControl;
                        }

                        XmlNode removedTempNode = controlNode.ParentNode.RemoveChild(controlNode);
                        currNode = cntrlNode.InsertAfter(removedTempNode, currNode);
                        break;

                    case ControlType1.Frame:
                    case ControlType1.TabControl:
                    case ControlType1.TableBox:
                        controlNode = cntrlNode.SelectSingleNode(@"./a:Group[./a:Properties/a:ID='" + control.Key + "']", metaDataDocMgt.XmlNamespaceMgt);
                        if (controlNode == null)
                        {
                            break;
                        }

                        currCntrlContainer = null;
                        currNode           = cntrlNode.InsertAfter(controlNode.ParentNode.RemoveChild(controlNode), currNode);
                        break;

                    case ControlType1.Subform:
                        controlNode = cntrlNode.SelectSingleNode(@"./a:Control[./a:Properties/a:ID='" + control.Key + "']", metaDataDocMgt.XmlNamespaceMgt);
                        if (controlNode == null)
                        {
                            break;
                        }

                        currCntrlContainer = null;
                        currNode           = cntrlNode.InsertAfter(controlNode.ParentNode.RemoveChild(controlNode), currNode);
                        break;

                    case ControlType1.Label:
                        if (PageControls.IsObjectHasIndentation(metaDataDocMgt.GetCurrentPageId))
                        {
                            goto case ControlType1.TableBox;
                        }

                        break;

                    default:
                        break;
                    }
                }
            }
        }
        private static void TransformPage()
        {
            try
            {
                ControlParentChildNesting();
                DeleteElements.Start();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepNesting, e);
            }

            try
            {
                CodeTransformationRules.PerformMoveToTriggerActions(true);
                CodeTransformationRules.PerformMoveToPropertyActions();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepCleanProperties, e);
            }

            try
            {
                PageProperties.AddDefaultProperties();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepAddDefaultProperties, e);
            }

            try
            {
                XmlUtility.AlignControls();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepAligningControls, e);
            }

            try
            {
                GetSortedControls();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepGetSortedControls, e);
            }

            try
            {
                SourceObject.CreateSourceObject();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepCreateSourceObject, e);
            }

            try
            {
                PageActions.RemoveNotSupportedActions();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepRemoveUnsupportedActions, e);
            }

            try
            {
                PageActions.MoveMenuButtonsToActionPage();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepMoveMenuButtons, e);
            }

            try
            {
                PageActions.MoveCommandButtonsToAction();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepMoveCommandButtons, e);
            }

            try
            {
                PageControls.LogExtraInformation();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepLogExtraInformation, e);
            }

            try
            {
                PageControls.ManageOptionButtons();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepManageOptionButtons, e);
            }

            try
            {
                PageControls.ManageFixedLayout();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepManageFixedLayout, e);
            }

            try
            {
                PageControls.ManageLabels();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepManageLabels, e);
            }

            try
            {
                PageControls.SearchCaptionsInTextBoxes();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepManageLabels, e);
            }

            try
            {
                PageControls.DeleteLabels();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepDeleteLabels, e);
            }

            try
            {
                PageControls.TransformTabControlsToBands();
                PageControls.TransformFrameToGroup();
                PageControls.TransformTableBoxToRepeater();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepCreateBands, e);
            }

            try
            {
                PageControls.MoveUntouchedControlsToContentArea();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepMoveUntouchedControls, e);
            }

            try
            {
                PageControls.ManageControlType();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepManageControlType, e);
            }

            try
            {
                PageControls.MoveElementsFromPropertiesToTriggerNode();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepMoveElementsFromPropertiesToTriggerNode, e);
            }

            try
            {
                PageControls.CleanTriggerNode();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepCleanTriggerNode, e);
            }

            try
            {
                MergeInput.StartMerging(); /* addelements */
                CleaningUp.CleanProperties();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepCleanProperties, e);
            }

            try
            {
                PageActions.ActionsFinalProcessing();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepActionsFinalProcessing, e);
            }

            try
            {
                ReSortActions();
                ReSortControls();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepAddSortedControls, e);
            }

            try
            {
                PageControls.AlignConfirmationDialogs();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepAlignConfirmationDialogs, e);
            }

            try
            {
                PageControls.FinalizeControlsProcessing();
            }
            catch (Exception e)
            {
                throw new TransformationException(Resources.StepFinalizeControlsProcessing, e);
            }
        }
        private static void ResortControlsForTrendscape(
            ref XmlNode currCntrlContainer,
            XmlNode cntrlNode,
            XmlNode currNode,
            XmlNode controlNode,
            ref bool breakWork,
            String optionCaptionML)
        {
            MetadataDocumentManagement metaDataDocMgt = MetadataDocumentManagement.Instance;

            if (metaDataDocMgt.MoveElementsDoc == null)
            {
                return;
            }

            StringBuilder queryPromoted = new StringBuilder();

            queryPromoted.Append(@"./a:MovePageElements/a:Page[@ID='");
            queryPromoted.Append(((int)MovePageElements.NotFormsId.TrendscapeControls).ToString(CultureInfo.InvariantCulture));
            queryPromoted.Append("' and @OptionCaptionML ='");
            queryPromoted.Append(optionCaptionML.Replace("'", ""));
            queryPromoted.Append("']");

            XmlNode trend = metaDataDocMgt.MoveElementsDoc.SelectSingleNode(queryPromoted.ToString(), metaDataDocMgt.XmlNamespaceMgt);

            if (trend == null)
            {
                return;
            }

            if (GetProperty(controlNode, "CaptionML") == null)
            {
                XmlNode propNode = controlNode.SelectSingleNode(
                    @"./a:Properties", metaDataDocMgt.XmlNamespaceMgt);

                string captionMlFromFile = GetAttribute(trend, "CaptionML");
                propNode.AppendChild(XmlUtility.CreateXmlElement("CaptionML", captionMlFromFile));

                propNode.AppendChild(XmlUtility.CreateXmlElement("TempProperty", "Trendscape"));

                XmlNode cntrlTypeNode = propNode.SelectSingleNode(
                    @"./a:Controltype", metaDataDocMgt.XmlNamespaceMgt);
                if ((cntrlTypeNode != null) && (cntrlTypeNode.InnerText == "RadioButton"))
                {
                    cntrlTypeNode.InnerText = "Field";
                }
            }

            if (currCntrlContainer == null)
            {
                Boolean done         = false;
                XmlNode tempCurrNode = currNode;
                if (tempCurrNode != null)
                {
                    while (!done)
                    {
                        if (((tempCurrNode.Name == "Control") && (GetProperty(tempCurrNode, "Controltype") == "Part")) ||
                            ((tempCurrNode.Name == "Group") && (GetProperty(tempCurrNode, "GroupType") == "Repeater")))
                        {
                            if ((tempCurrNode.PreviousSibling != null) &&
                                (tempCurrNode.PreviousSibling.Name == "Group") &&
                                (GetProperty(tempCurrNode.PreviousSibling, "CaptionML").Contains("ENU=Options")))
                            {
                                currCntrlContainer = tempCurrNode.PreviousSibling;
                                currCntrlContainer.AppendChild(controlNode.ParentNode.RemoveChild(controlNode));
                            }
                            else
                            {
                                tempCurrNode =
                                    cntrlNode.InsertBefore(
                                        PageControls.CreateBand(
                                            /*metaDataDocMgt.GetNewId.ToString(CultureInfo.InvariantCulture)*/
                                            metaDataDocMgt.CalcId(null, "Options", "ContentArea").ToString(CultureInfo.InvariantCulture), "ENU=Options"),
                                        tempCurrNode);
                                currCntrlContainer = tempCurrNode;
                                currCntrlContainer.AppendChild(controlNode.ParentNode.RemoveChild(controlNode));
                            }

                            done = true;
                        }

                        if (tempCurrNode != null)
                        {
                            break;
                        }
                    }

                    if (!done)
                    {
                        tempCurrNode = tempCurrNode.PreviousSibling;
                        if (tempCurrNode != null)
                        {
                            if (tempCurrNode.Name == "Properties")
                            {
                                breakWork = true;
                            }
                        }
                    }
                }

                if (done)
                {
                    breakWork = true;
                }
            }
            else if ((currCntrlContainer.Name == "Group") &&
                     (GetProperty(currCntrlContainer, "CaptionML").Contains("ENU=Options")))
            {
                currCntrlContainer.AppendChild(controlNode.ParentNode.RemoveChild(controlNode));
                breakWork = true;
            }
        }
コード例 #29
0
        }// CConfigAssemWiz1

        //-------------------------------------------------
        // InsertPropSheetPageControls
        //
        // This function will create all the winforms controls
        // and parent them to the passed-in Window Handle.
        //
        // Note: For some winforms controls, such as radio buttons
        // and datagrids, we need to create a container, parent the
        // container to our window handle, and then parent our
        // winform controls to the container.
        //-------------------------------------------------
        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CConfigAssemWiz1));
            this.m_gbAssemInfo       = new System.Windows.Forms.GroupBox();
            this.m_txtName           = new System.Windows.Forms.TextBox();
            this.m_btnChooseAssem    = new System.Windows.Forms.Button();
            this.m_radManEnter       = new System.Windows.Forms.RadioButton();
            this.m_radChooseDepends  = new System.Windows.Forms.RadioButton();
            this.m_txtPublicKeyToken = new System.Windows.Forms.TextBox();
            this.m_lblName           = new System.Windows.Forms.Label();
            this.m_lblPublicKeyToken = new System.Windows.Forms.Label();
            this.m_radChooseShared   = new System.Windows.Forms.RadioButton();
            this.m_gbAssemInfo.Controls.AddRange(new System.Windows.Forms.Control[] {
                this.m_lblName,
                this.m_txtName,
                this.m_lblPublicKeyToken,
                this.m_txtPublicKeyToken
            });
            this.m_gbAssemInfo.Location = ((System.Drawing.Point)(resources.GetObject("m_gbAssemInfo.Location")));
            this.m_gbAssemInfo.Size     = ((System.Drawing.Size)(resources.GetObject("m_gbAssemInfo.Size")));
            this.m_gbAssemInfo.Text     = resources.GetString("m_gbAssemInfo.Text");
            m_gbAssemInfo.Name          = "GBAssemInfo";
            this.m_txtName.Location     = ((System.Drawing.Point)(resources.GetObject("m_txtName.Location")));
            this.m_txtName.Size         = ((System.Drawing.Size)(resources.GetObject("m_txtName.Size")));
            this.m_txtName.TabIndex     = 4;
            m_txtName.Name = "Name";
            this.m_btnChooseAssem.Location    = ((System.Drawing.Point)(resources.GetObject("m_btnChooseAssem.Location")));
            this.m_btnChooseAssem.Size        = ((System.Drawing.Size)(resources.GetObject("m_btnChooseAssem.Size")));
            this.m_btnChooseAssem.TabIndex    = 2;
            this.m_btnChooseAssem.Text        = resources.GetString("m_btnChooseAssem.Text");
            m_btnChooseAssem.Name             = "ChooseAssembly";
            this.m_radManEnter.Location       = ((System.Drawing.Point)(resources.GetObject("m_radManEnter.Location")));
            this.m_radManEnter.Size           = ((System.Drawing.Size)(resources.GetObject("m_radManEnter.Size")));
            this.m_radManEnter.TabIndex       = 3;
            this.m_radManEnter.Text           = resources.GetString("m_radManEnter.Text");
            m_radManEnter.Name                = "EnterAssem";
            this.m_radChooseDepends.Location  = ((System.Drawing.Point)(resources.GetObject("m_radChooseDepends.Location")));
            this.m_radChooseDepends.Size      = ((System.Drawing.Size)(resources.GetObject("m_radChooseDepends.Size")));
            this.m_radChooseDepends.TabIndex  = 1;
            this.m_radChooseDepends.Text      = resources.GetString("m_radChooseDepends.Text");
            m_radChooseDepends.Name           = "DependAssem";
            this.m_txtPublicKeyToken.Location = ((System.Drawing.Point)(resources.GetObject("m_txtPublicKeyToken.Location")));
            this.m_txtPublicKeyToken.Size     = ((System.Drawing.Size)(resources.GetObject("m_txtPublicKeyToken.Size")));
            this.m_txtPublicKeyToken.TabIndex = 5;
            m_txtPublicKeyToken.Name          = "PublicKeyToken";
            this.m_lblName.Location           = ((System.Drawing.Point)(resources.GetObject("m_lblName.Location")));
            this.m_lblName.Size               = ((System.Drawing.Size)(resources.GetObject("m_lblName.Size")));
            this.m_lblName.TabIndex           = ((int)(resources.GetObject("m_lblName.TabIndex")));
            this.m_lblName.Text               = resources.GetString("m_lblName.Text");
            m_lblName.Name = "NameLabel";
            this.m_lblPublicKeyToken.Location = ((System.Drawing.Point)(resources.GetObject("m_lblPublicKeyToken.Location")));
            this.m_lblPublicKeyToken.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblPublicKeyToken.Size")));
            this.m_lblPublicKeyToken.TabIndex = ((int)(resources.GetObject("m_lblPublicKeyToken.TabIndex")));
            this.m_lblPublicKeyToken.Text     = resources.GetString("m_lblPublicKeyToken.Text");
            m_lblPublicKeyToken.Name          = "PublicKeyTokenLabel";
            this.m_radChooseShared.Location   = ((System.Drawing.Point)(resources.GetObject("m_radChooseShared.Location")));
            this.m_radChooseShared.Size       = ((System.Drawing.Size)(resources.GetObject("m_radChooseShared.Size")));
            this.m_radChooseShared.TabIndex   = 0;
            this.m_radChooseShared.Text       = resources.GetString("m_radChooseShared.Text");
            m_radChooseShared.Name            = "SharedAssem";
            PageControls.AddRange(new System.Windows.Forms.Control[] {
                this.m_radChooseShared,
                this.m_radChooseDepends,
                this.m_radManEnter,
                this.m_btnChooseAssem,
                this.m_gbAssemInfo
            });

            // Hook up some event handlers
            m_radChooseShared.CheckedChanged  += new EventHandler(onChange);
            m_radChooseDepends.CheckedChanged += new EventHandler(onChange);
            m_radManEnter.CheckedChanged      += new EventHandler(onChange);
            m_btnChooseAssem.Click            += new EventHandler(onChooseAssemClick);
            m_txtName.TextChanged             += new EventHandler(onTextChange);

            // Let's set up the default values
            m_radChooseShared.Checked   = true;
            m_txtName.Enabled           = false;
            m_txtPublicKeyToken.Enabled = false;

            // See if we should show the 'dependent assemblies' option
            if (m_appDepends == null || !m_appDepends.HaveDepends)
            {
                m_radChooseDepends.Visible = false;
            }


            return(1);
        }// InsertPropSheetPageControls
コード例 #30
0
        }// CRemotingProp3

        //-------------------------------------------------
        // InsertPropSheetPageControls
        //
        // This function will create all the winforms controls
        // and parent them to the passed-in Window Handle.
        //
        // Note: For some winforms controls, such as radio buttons
        // and datagrids, we need to create a container, parent the
        // container to our window handle, and then parent our
        // winform controls to the container.
        //-------------------------------------------------
        internal override int InsertPropSheetPageControls()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CRemotingProp3));
            this.m_cbChannel        = new System.Windows.Forms.ComboBox();
            this.m_lblGenHelp       = new System.Windows.Forms.Label();
            this.m_lblHelp          = new System.Windows.Forms.Label();
            this.m_lblChooseChannel = new System.Windows.Forms.Label();
            this.m_dg = new MyDataGrid();
            this.m_cbChannel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.m_cbChannel.DropDownWidth = 152;
            this.m_cbChannel.Location      = ((System.Drawing.Point)(resources.GetObject("m_cbChannel.Location")));
            this.m_cbChannel.Size          = ((System.Drawing.Size)(resources.GetObject("m_cbChannel.Size")));
            this.m_cbChannel.TabIndex      = ((int)(resources.GetObject("m_cbChannel.TabIndex")));
            m_cbChannel.Name                 = "Channels";
            this.m_lblGenHelp.Location       = ((System.Drawing.Point)(resources.GetObject("m_lblGenHelp.Location")));
            this.m_lblGenHelp.Size           = ((System.Drawing.Size)(resources.GetObject("m_lblGenHelp.Size")));
            this.m_lblGenHelp.TabIndex       = ((int)(resources.GetObject("m_lblGenHelp.TabIndex")));
            this.m_lblGenHelp.Text           = resources.GetString("m_lblGenHelp.Text");
            m_lblGenHelp.Name                = "GeneralHelp";
            this.m_lblHelp.Location          = ((System.Drawing.Point)(resources.GetObject("m_lblHelp.Location")));
            this.m_lblHelp.Size              = ((System.Drawing.Size)(resources.GetObject("m_lblHelp.Size")));
            this.m_lblHelp.TabIndex          = ((int)(resources.GetObject("m_lblHelp.TabIndex")));
            this.m_lblHelp.Text              = resources.GetString("m_lblHelp.Text");
            m_lblHelp.Name                   = "Help";
            this.m_lblChooseChannel.Location = ((System.Drawing.Point)(resources.GetObject("m_lblChooseChannel.Location")));
            this.m_lblChooseChannel.Size     = ((System.Drawing.Size)(resources.GetObject("m_lblChooseChannel.Size")));
            this.m_lblChooseChannel.TabIndex = ((int)(resources.GetObject("m_lblChooseChannel.TabIndex")));
            this.m_lblChooseChannel.Text     = resources.GetString("m_lblChooseChannel.Text");
            m_lblChooseChannel.Name          = "ChooseChannel";
            this.m_dg.DataMember             = "";
            this.m_dg.Location               = ((System.Drawing.Point)(resources.GetObject("m_dg.Location")));
            this.m_dg.Size                   = ((System.Drawing.Size)(resources.GetObject("m_dg.Size")));
            this.m_dg.TabIndex               = ((int)(resources.GetObject("m_dg.TabIndex")));
            m_dg.Name            = "Grid";
            m_dg.BackgroundColor = Color.White;

            PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_dg,
                                                                       this.m_lblHelp,
                                                                       m_lblGenHelp,
                                                                       this.m_lblChooseChannel,
                                                                       this.m_cbChannel });

            //---------- Begin Data Table ----------------
            m_dt = new DataTable("Attributes");
            m_ds = new DataSet();
            m_ds.Tables.Add(m_dt);

            m_dt.DefaultView.AllowNew = false;

            // Create the "Attribute" Column
            DataColumn dcAttribute = new DataColumn();

            dcAttribute.ColumnName = "Attribute";
            dcAttribute.DataType   = typeof(String);
            m_dt.Columns.Add(dcAttribute);

            // Create the "Value" Column
            DataColumn dcValue = new DataColumn();

            dcValue.ColumnName = "Value";
            dcValue.DataType   = typeof(String);
            m_dt.Columns.Add(dcValue);

            // Now set up any column-specific behavioral stuff....
            // like setting column widths, etc.

            DataGridTableStyle    dgtsAct        = new DataGridTableStyle();
            DataGridTextBoxColumn dgtbcAttribute = new DataGridTextBoxColumn();
            DataGridTextBoxColumn dgtbcValue     = new DataGridTextBoxColumn();

            m_dg.TableStyles.Add(dgtsAct);
            dgtsAct.MappingName       = "Attributes";
            dgtsAct.RowHeadersVisible = false;
            dgtsAct.AllowSorting      = false;
            dgtsAct.ReadOnly          = false;

            // Set up the column info for the Object Type column
            dgtbcAttribute.MappingName = "Attribute";
            dgtbcAttribute.HeaderText  = CResourceStore.GetString("CRemotingProp3:AttributeColumn");
            dgtbcAttribute.ReadOnly    = true;
            dgtbcAttribute.Width       = ScaleWidth(CResourceStore.GetInt("CRemotingProp3:AttributeColumnWidth"));
            dgtbcAttribute.NullText    = "";

            dgtsAct.GridColumnStyles.Add(dgtbcAttribute);

            // Set up the column info for the value column
            dgtbcValue.MappingName          = "Value";
            dgtbcValue.HeaderText           = CResourceStore.GetString("CRemotingProp3:ValueColumn");
            dgtbcValue.ReadOnly             = false;
            dgtbcValue.Width                = ScaleWidth(CResourceStore.GetInt("CRemotingProp3:ValueColumnWidth"));
            dgtbcValue.NullText             = "";
            dgtbcValue.TextBox.TextChanged += new EventHandler(onChange);


            dgtsAct.GridColumnStyles.Add(dgtbcValue);

            m_dg.DataSource = m_dt;
            //---------- End Data Table ----------------

            // Fill in the data
            PutValuesinPage();

            // Do some UI tweaks
            m_dg.ReadOnly          = false;
            m_dg.CaptionVisible    = false;
            m_dg.ParentRowsVisible = false;

            // Now finally hook up event handlers
            m_cbChannel.SelectedIndexChanged     += new EventHandler(onChannelChange);
            m_dg.TheVertScrollBar.VisibleChanged += new EventHandler(onVisibleChange);

            return(1);
        }// InsertPropSheetPageControls