}// 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
}// 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
}// 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
}// 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
}// 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
}// 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
}// 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
}// 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
}// 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
}// 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
}// 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
}// Init internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CEvalAssemWiz2)); this.m_lvPermissions = new System.Windows.Forms.ListView(); this.m_lblLevelEval = new System.Windows.Forms.Label(); this.m_lblHelpPerm = new System.Windows.Forms.Label(); this.m_txtAssemEval = new System.Windows.Forms.TextBox(); this.m_lblHelp = new System.Windows.Forms.Label(); this.m_lblAssemEval = new System.Windows.Forms.Label(); this.m_lblLevelEvalVal = new System.Windows.Forms.Label(); this.m_btnViewPerm = new System.Windows.Forms.Button(); this.m_lvPermissions.Location = ((System.Drawing.Point)(resources.GetObject("m_lvPermissions.Location"))); this.m_lvPermissions.Size = ((System.Drawing.Size)(resources.GetObject("m_lvPermissions.Size"))); this.m_lvPermissions.TabIndex = ((int)(resources.GetObject("m_lvPermissions.TabIndex"))); m_lvPermissions.Name = "Permissions"; this.m_lblLevelEval.Location = ((System.Drawing.Point)(resources.GetObject("m_lblLevelEval.Location"))); this.m_lblLevelEval.Size = ((System.Drawing.Size)(resources.GetObject("m_lblLevelEval.Size"))); this.m_lblLevelEval.TabIndex = ((int)(resources.GetObject("m_lblLevelEval.TabIndex"))); this.m_lblLevelEval.Text = resources.GetString("m_lblLevelEval.Text"); m_lblLevelEval.Name = "PolicyLevelLabel"; this.m_lblHelpPerm.Location = ((System.Drawing.Point)(resources.GetObject("m_lblHelpPerm.Location"))); this.m_lblHelpPerm.Size = ((System.Drawing.Size)(resources.GetObject("m_lblHelpPerm.Size"))); this.m_lblHelpPerm.TabIndex = ((int)(resources.GetObject("m_lblHelpPerm.TabIndex"))); this.m_lblHelpPerm.Text = resources.GetString("m_lblHelpPerm.Text"); m_lblHelpPerm.Name = "HelpPerm"; this.m_txtAssemEval.Location = ((System.Drawing.Point)(resources.GetObject("m_txtAssemEval.Location"))); this.m_txtAssemEval.ReadOnly = true; this.m_txtAssemEval.Size = ((System.Drawing.Size)(resources.GetObject("m_txtAssemEval.Size"))); this.m_txtAssemEval.TabStop = false; this.m_txtAssemEval.Text = resources.GetString("m_txtAssemEval.Text"); m_txtAssemEval.Name = "Assembly"; 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_lblAssemEval.Location = ((System.Drawing.Point)(resources.GetObject("m_lblAssemEval.Location"))); this.m_lblAssemEval.Size = ((System.Drawing.Size)(resources.GetObject("m_lblAssemEval.Size"))); this.m_lblAssemEval.TabIndex = ((int)(resources.GetObject("m_lblAssemEval.TabIndex"))); this.m_lblAssemEval.Text = resources.GetString("m_lblAssemEval.Text"); m_lblAssemEval.Name = "AssemblyLabel"; this.m_lblLevelEvalVal.Location = ((System.Drawing.Point)(resources.GetObject("m_lblLevelEvalVal.Location"))); this.m_lblLevelEvalVal.Size = ((System.Drawing.Size)(resources.GetObject("m_lblLevelEvalVal.Size"))); this.m_lblLevelEvalVal.TabIndex = ((int)(resources.GetObject("m_lblLevelEvalVal.TabIndex"))); this.m_lblLevelEvalVal.Text = resources.GetString("m_lblLevelEvalVal.Text"); m_lblLevelEvalVal.Name = "PolicyLevel"; this.m_btnViewPerm.Location = ((System.Drawing.Point)(resources.GetObject("m_btnViewPerm.Location"))); this.m_btnViewPerm.Size = ((System.Drawing.Size)(resources.GetObject("m_btnViewPerm.Size"))); this.m_btnViewPerm.TabIndex = ((int)(resources.GetObject("m_btnViewPerm.TabIndex"))); this.m_btnViewPerm.Text = resources.GetString("m_btnViewPerm.Text"); m_btnViewPerm.Name = "ViewPermissions"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblHelpPerm, this.m_lblHelp, this.m_lvPermissions, this.m_btnViewPerm, this.m_txtAssemEval, this.m_lblLevelEvalVal, this.m_lblLevelEval, this.m_lblAssemEval }); // Create an image list of icons we'll be displaying m_ilIcons = new ImageList(); // Keep the order of these consistant with the const's declared at the top // of this class m_ilIcons.Images.Add(System.Drawing.Icon.FromHandle(CResourceStore.GetHIcon("permission_ico"))); m_ilIcons.Images.Add(System.Drawing.Icon.FromHandle(CResourceStore.GetHIcon("permission_ico"))); // Some customizations we've made.... m_lvPermissions.DoubleClick += new EventHandler(onViewPermsClick); m_btnViewPerm.Click += new EventHandler(onViewPermsClick); m_lvPermissions.SmallImageList = m_ilIcons; m_lvPermissions.MultiSelect = false; m_lvPermissions.View = View.Details; m_lvPermissions.HeaderStyle = ColumnHeaderStyle.None; ColumnHeader ch = new ColumnHeader(); ch.Text = "Permission"; ch.Width = ((System.Drawing.Size)(resources.GetObject("m_lvPermissions.Size"))).Width - 17; m_lvPermissions.Columns.Add(ch); m_txtAssemEval.BorderStyle = BorderStyle.None; return(1); }// InsertPropSheetPageControls
}// MaxLevels internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CSecurityAdjustmentWiz2)); this.m_lblSelectZone = new System.Windows.Forms.Label(); this.m_gbChooseLevel = new System.Windows.Forms.GroupBox(); this.m_lvZones = new System.Windows.Forms.ListView(); this.m_lblNoTrust = new System.Windows.Forms.Label(); this.m_lblFullTrust = new System.Windows.Forms.Label(); this.m_btnDefault = new System.Windows.Forms.Button(); this.m_lblZoneDescription = new System.Windows.Forms.Label(); this.m_lblTrustDescription = new System.Windows.Forms.Label(); this.m_tbLevelOfTrust = new System.Windows.Forms.TrackBar(); ((System.ComponentModel.ISupportInitialize)(this.m_tbLevelOfTrust)).BeginInit(); /* this.m_lblSelectZone.Location = ((System.Drawing.Point)(resources.GetObject("m_lblSelectZone.Location"))); * this.m_lblSelectZone.Size = ((System.Drawing.Size)(resources.GetObject("m_lblSelectZone.Size"))); * this.m_lblSelectZone.TabIndex = ((int)(resources.GetObject("m_lblSelectZone.TabIndex"))); * this.m_lblSelectZone.Text = resources.GetString("m_lblSelectZone.Text"); */ this.m_lblSelectZone.Visible = false; this.m_gbChooseLevel.Controls.AddRange(new System.Windows.Forms.Control[] { this.m_lblTrustDescription, this.m_lblNoTrust, this.m_lblFullTrust, this.m_tbLevelOfTrust, this.m_btnDefault }); this.m_gbChooseLevel.Location = ((System.Drawing.Point)(resources.GetObject("m_gbChooseLevel.Location"))); this.m_gbChooseLevel.Size = ((System.Drawing.Size)(resources.GetObject("m_gbChooseLevel.Size"))); this.m_gbChooseLevel.TabIndex = ((int)(resources.GetObject("m_gbChooseLevel.TabIndex"))); this.m_gbChooseLevel.TabStop = false; this.m_gbChooseLevel.Text = resources.GetString("m_gbChooseLevel.Text"); m_gbChooseLevel.Name = "ChooseLevelBox"; m_sOriginalGBText = m_gbChooseLevel.Text; this.m_lvZones.Location = ((System.Drawing.Point)(resources.GetObject("m_lvZones.Location"))); this.m_lvZones.Size = ((System.Drawing.Size)(resources.GetObject("m_lvZones.Size"))); this.m_lvZones.TabIndex = ((int)(resources.GetObject("m_lvZones.TabIndex"))); m_lvZones.Name = "Zones"; this.m_lblNoTrust.Location = ((System.Drawing.Point)(resources.GetObject("m_lblNoTrust.Location"))); this.m_lblNoTrust.Size = ((System.Drawing.Size)(resources.GetObject("m_lblNoTrust.Size"))); this.m_lblNoTrust.TabIndex = ((int)(resources.GetObject("m_lblNoTrust.TabIndex"))); this.m_lblNoTrust.Text = resources.GetString("m_lblNoTrust.Text"); m_lblNoTrust.TextAlign = ContentAlignment.MiddleCenter; m_lblNoTrust.Name = "NoTrustLabel"; this.m_lblFullTrust.Location = ((System.Drawing.Point)(resources.GetObject("m_lblFullTrust.Location"))); this.m_lblFullTrust.Size = ((System.Drawing.Size)(resources.GetObject("m_lblFullTrust.Size"))); this.m_lblFullTrust.TabIndex = ((int)(resources.GetObject("m_lblFullTrust.TabIndex"))); this.m_lblFullTrust.Text = resources.GetString("m_lblFullTrust.Text"); m_lblFullTrust.Name = "FullTrustLabel"; m_lblFullTrust.TextAlign = ContentAlignment.MiddleCenter; this.m_btnDefault.Location = ((System.Drawing.Point)(resources.GetObject("m_btnDefault.Location"))); this.m_btnDefault.Size = ((System.Drawing.Size)(resources.GetObject("m_btnDefault.Size"))); this.m_btnDefault.TabIndex = ((int)(resources.GetObject("m_btnDefault.TabIndex"))); this.m_btnDefault.Text = resources.GetString("m_btnDefault.Text"); m_btnDefault.Name = "Default"; this.m_lblZoneDescription.Location = ((System.Drawing.Point)(resources.GetObject("m_lblZoneDescription.Location"))); this.m_lblZoneDescription.Size = ((System.Drawing.Size)(resources.GetObject("m_lblZoneDescription.Size"))); this.m_lblZoneDescription.TabIndex = ((int)(resources.GetObject("m_lblZoneDescription.TabIndex"))); m_lblZoneDescription.Name = "ZoneDescription"; this.m_lblTrustDescription.Location = ((System.Drawing.Point)(resources.GetObject("m_lblTrustDescription.Location"))); this.m_lblTrustDescription.Size = ((System.Drawing.Size)(resources.GetObject("m_lblTrustDescription.Size"))); this.m_lblTrustDescription.TabIndex = ((int)(resources.GetObject("m_lblTrustDescription.TabIndex"))); m_lblTrustDescription.Name = "TrustDescription"; this.m_tbLevelOfTrust.Location = ((System.Drawing.Point)(resources.GetObject("m_tbLevelOfTrust.Location"))); this.m_tbLevelOfTrust.Maximum = 3; this.m_tbLevelOfTrust.Orientation = System.Windows.Forms.Orientation.Vertical; this.m_tbLevelOfTrust.Size = ((System.Drawing.Size)(resources.GetObject("m_tbLevelOfTrust.Size"))); this.m_tbLevelOfTrust.TabIndex = ((int)(resources.GetObject("m_tbLevelOfTrust.TabIndex"))); this.m_tbLevelOfTrust.LargeChange = 1; m_tbLevelOfTrust.Name = "TrustLevel"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblZoneDescription, this.m_lvZones, this.m_gbChooseLevel, this.m_lblSelectZone }); ((System.ComponentModel.ISupportInitialize)(this.m_tbLevelOfTrust)).EndInit(); // Some tweaks on the listview // Create an image list of icons we'll be displaying m_ilIcons = new ImageList(); m_ilIcons.ImageSize = new Size(32, 32); // Keep the order of these consistant with the const's declared at the top // of this class m_ilIcons.Images.Add(Bitmap.FromHbitmap(CResourceStore.GetHBitmap("IDB_MYCOMPUTER", 32, 32))); m_ilIcons.Images.Add(Bitmap.FromHbitmap(CResourceStore.GetHBitmap("IDB_INTRANET", 32, 32))); m_ilIcons.Images.Add(Bitmap.FromHbitmap(CResourceStore.GetHBitmap("IDB_INTERNET", 32, 32))); m_ilIcons.Images.Add(Bitmap.FromHbitmap(CResourceStore.GetHBitmap("IDB_TRUSTED", 32, 32))); m_ilIcons.Images.Add(Bitmap.FromHbitmap(CResourceStore.GetHBitmap("IDB_UNTRUSTED", 32, 32))); m_ilIcons.TransparentColor = Color.White; // Some customizations we've made.... m_lvZones.LargeImageList = m_ilIcons; m_lvZones.MultiSelect = false; m_lvZones.View = View.LargeIcon; m_lvZones.Activation = System.Windows.Forms.ItemActivation.OneClick; m_lvZones.HideSelection = false; PutValuesinPage(); m_lvZones.Items[0].Selected = true; // Hook up the event handlers m_tbLevelOfTrust.ValueChanged += new EventHandler(onLevelChange); m_lvZones.SelectedIndexChanged += new EventHandler(onZoneChange); m_btnDefault.Click += new EventHandler(onResetClick); return(1); }// InsertPropSheetPageControls
}// UserProblems internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CSecurityAdjustmentWiz3)); this.m_dg = new System.Windows.Forms.DataGrid(); this.m_lblSummary = new System.Windows.Forms.Label(); this.m_lblDes = new System.Windows.Forms.Label(); m_lblUserProblem = new System.Windows.Forms.Label(); // Set up the GUI-type stuff for the data grid 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; // Now set up any column-specific behavioral stuff.... // like not letting the checkboxes allow null, setting // column widths, etc. DataGridTableStyle dgts = new DataGridTableStyle(); DataGridTextBoxColumn dgtbcZone = new DataGridTextBoxColumn(); DataGridTextBoxColumn dgtbcSecurityLevel = new DataGridTextBoxColumn(); m_dg.TableStyles.Add(dgts); dgts.MappingName = "Stuff"; dgts.RowHeadersVisible = false; dgts.AllowSorting = false; // Set up the column info for the Property column dgtbcZone.MappingName = "Zone"; dgtbcZone.HeaderText = CResourceStore.GetString("CSecurityAdjustmentWiz3:ZoneColumn"); dgtbcZone.ReadOnly = true; dgtbcZone.Width = ScaleWidth(CResourceStore.GetInt("CSecurityAdjustmentWiz3:ZoneColumnWidth")); dgts.GridColumnStyles.Add(dgtbcZone); // Set up the column info for the Value column dgtbcSecurityLevel.MappingName = "Security Level"; dgtbcSecurityLevel.HeaderText = CResourceStore.GetString("CSecurityAdjustmentWiz3:SecurityLevelColumn"); dgtbcSecurityLevel.Width = ScaleWidth(CResourceStore.GetInt("CSecurityAdjustmentWiz3:SecurityLevelColumnWidth")); dgts.GridColumnStyles.Add(dgtbcSecurityLevel); 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"; 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 = "Description"; this.m_lblUserProblem.Location = ((System.Drawing.Point)(resources.GetObject("m_lblUserProblem.Location"))); this.m_lblUserProblem.Size = ((System.Drawing.Size)(resources.GetObject("m_lblUserProblem.Size"))); this.m_lblUserProblem.TabIndex = ((int)(resources.GetObject("m_lblUserProblem.TabIndex"))); this.m_lblUserProblem.Text = resources.GetString("m_lblUserProblem.Text"); m_lblUserProblem.Name = "UserProblem"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblDes, this.m_dg, this.m_lblSummary, m_lblUserProblem }); // Additional UI tweaks m_dg.ReadOnly = true; m_dg.CaptionVisible = false; PageControls.Add(m_dg); CreateTable(); return(1); }// InsertPropSheetPageControls
}// CAssemGenProps //------------------------------------------------- // 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(CAssemGenProps)); this.m_txtLastModifed = new System.Windows.Forms.TextBox(); this.m_txtCulture = new System.Windows.Forms.TextBox(); this.m_lblPublicKeyToken = new System.Windows.Forms.Label(); this.m_txtVersion = new System.Windows.Forms.TextBox(); this.m_txtCacheType = new System.Windows.Forms.TextBox(); this.m_txtPublicKeyToken = new System.Windows.Forms.TextBox(); this.m_lblVersion = new System.Windows.Forms.Label(); this.m_lblAssemName = new System.Windows.Forms.Label(); this.m_lblLastMod = new System.Windows.Forms.Label(); this.m_lblCacheType = new System.Windows.Forms.Label(); this.m_lblCodebase = new System.Windows.Forms.Label(); this.m_txtCodebase = new System.Windows.Forms.TextBox(); this.m_lblCulture = new System.Windows.Forms.Label(); this.m_txtAssemName = new System.Windows.Forms.TextBox(); this.m_txtLastModifed.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtLastModifed.Location = ((System.Drawing.Point)(resources.GetObject("m_txtLastModifed.Location"))); this.m_txtLastModifed.ReadOnly = true; this.m_txtLastModifed.Size = ((System.Drawing.Size)(resources.GetObject("m_txtLastModifed.Size"))); this.m_txtLastModifed.TabStop = false; m_txtLastModifed.Name = "LastModified"; this.m_txtCulture.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtCulture.Location = ((System.Drawing.Point)(resources.GetObject("m_txtCulture.Location"))); this.m_txtCulture.ReadOnly = true; this.m_txtCulture.Size = ((System.Drawing.Size)(resources.GetObject("m_txtCulture.Size"))); this.m_txtCulture.TabStop = false; m_txtCulture.Name = "Culture"; 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_txtVersion.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtVersion.Location = ((System.Drawing.Point)(resources.GetObject("m_txtVersion.Location"))); this.m_txtVersion.ReadOnly = true; this.m_txtVersion.Size = ((System.Drawing.Size)(resources.GetObject("m_txtVersion.Size"))); this.m_txtVersion.TabStop = false; m_txtVersion.Name = "Version"; this.m_txtCacheType.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtCacheType.Location = ((System.Drawing.Point)(resources.GetObject("m_txtCacheType.Location"))); this.m_txtCacheType.ReadOnly = true; this.m_txtCacheType.Size = ((System.Drawing.Size)(resources.GetObject("m_txtCacheType.Size"))); this.m_txtCacheType.TabStop = false; m_txtCacheType.Name = "CacheType"; 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_lblVersion.Location = ((System.Drawing.Point)(resources.GetObject("m_lblVersion.Location"))); this.m_lblVersion.Size = ((System.Drawing.Size)(resources.GetObject("m_lblVersion.Size"))); this.m_lblVersion.TabIndex = ((int)(resources.GetObject("m_lblVersion.TabIndex"))); this.m_lblVersion.Text = resources.GetString("m_lblVersion.Text"); m_lblVersion.Name = "VersionLabel"; 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.TabIndex = ((int)(resources.GetObject("m_lblAssemName.TabIndex"))); this.m_lblAssemName.Text = resources.GetString("m_lblAssemName.Text"); m_lblAssemName.Name = "AssemblyNameLabel"; this.m_lblLastMod.Location = ((System.Drawing.Point)(resources.GetObject("m_lblLastMod.Location"))); this.m_lblLastMod.Size = ((System.Drawing.Size)(resources.GetObject("m_lblLastMod.Size"))); this.m_lblLastMod.TabIndex = ((int)(resources.GetObject("m_lblLastMod.TabIndex"))); this.m_lblLastMod.Text = resources.GetString("m_lblLastMod.Text"); m_lblLastMod.Name = "LastModifiedLabel"; this.m_lblCacheType.Location = ((System.Drawing.Point)(resources.GetObject("m_lblCacheType.Location"))); this.m_lblCacheType.Size = ((System.Drawing.Size)(resources.GetObject("m_lblCacheType.Size"))); this.m_lblCacheType.TabIndex = ((int)(resources.GetObject("m_lblCacheType.TabIndex"))); this.m_lblCacheType.Text = resources.GetString("m_lblCacheType.Text"); m_lblCacheType.Name = "CacheTypeLabel"; this.m_lblCodebase.Location = ((System.Drawing.Point)(resources.GetObject("m_lblCodebase.Location"))); this.m_lblCodebase.Size = ((System.Drawing.Size)(resources.GetObject("m_lblCodebase.Size"))); this.m_lblCodebase.TabIndex = ((int)(resources.GetObject("m_lblCodebase.TabIndex"))); this.m_lblCodebase.Text = resources.GetString("m_lblCodebase.Text"); m_lblCodebase.Name = "CodebaseLabel"; this.m_txtCodebase.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtCodebase.Location = ((System.Drawing.Point)(resources.GetObject("m_txtCodebase.Location"))); this.m_txtCodebase.ReadOnly = true; this.m_txtCodebase.Size = ((System.Drawing.Size)(resources.GetObject("m_txtCodebase.Size"))); this.m_txtCodebase.TabStop = false; m_txtCodebase.Name = "Codebase"; this.m_lblCulture.Location = ((System.Drawing.Point)(resources.GetObject("m_lblCulture.Location"))); this.m_lblCulture.Size = ((System.Drawing.Size)(resources.GetObject("m_lblCulture.Size"))); this.m_lblCulture.TabIndex = ((int)(resources.GetObject("m_lblCulture.TabIndex"))); this.m_lblCulture.Text = resources.GetString("m_lblCulture.Text"); m_lblCulture.Name = "CultureLabel"; 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"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_txtCacheType, this.m_txtCodebase, this.m_txtPublicKeyToken, this.m_txtVersion, this.m_txtCulture, this.m_txtLastModifed, this.m_lblCacheType, this.m_lblCodebase, this.m_lblPublicKeyToken, this.m_lblVersion, this.m_lblCulture, this.m_lblLastMod, this.m_txtAssemName, this.m_lblAssemName }); // Fill in the data PutValuesinPage(); m_txtCodebase.Select(0, 0); m_txtPublicKeyToken.Select(0, 0); m_txtVersion.Select(0, 0); m_txtCulture.Select(0, 0); m_txtLastModifed.Select(0, 0); m_txtAssemName.Select(0, 0); return(1); }// InsertPropSheetPageControls
}// CTrustAppWiz3 internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CTrustAppWiz3)); this.m_lblSelectedAssem = new System.Windows.Forms.Label(); this.m_txtSelectedAssem = new System.Windows.Forms.TextBox(); this.m_lblHowToTrust = new System.Windows.Forms.Label(); this.m_radOneAssem = new System.Windows.Forms.RadioButton(); this.m_radPublisher = new System.Windows.Forms.RadioButton(); this.m_lblPublisher = new System.Windows.Forms.Label(); this.m_txtPublisher = new System.Windows.Forms.TextBox(); this.m_radStrongName = new System.Windows.Forms.RadioButton(); this.m_lblPublicKeyToken = new System.Windows.Forms.Label(); this.m_txtPublicKeyToken = new System.Windows.Forms.TextBox(); this.m_chkVersion = new System.Windows.Forms.CheckBox(); this.m_txtVersion = new System.Windows.Forms.TextBox(); this.m_llblHelp = new System.Windows.Forms.LinkLabel(); // // m_lblSelectedAssem // this.m_lblSelectedAssem.AccessibleDescription = ((string)(resources.GetObject("m_lblSelectedAssem.AccessibleDescription"))); this.m_lblSelectedAssem.AccessibleName = ((string)(resources.GetObject("m_lblSelectedAssem.AccessibleName"))); this.m_lblSelectedAssem.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_lblSelectedAssem.Anchor"))); this.m_lblSelectedAssem.AutoSize = ((bool)(resources.GetObject("m_lblSelectedAssem.AutoSize"))); this.m_lblSelectedAssem.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_lblSelectedAssem.Cursor"))); this.m_lblSelectedAssem.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_lblSelectedAssem.Dock"))); this.m_lblSelectedAssem.Enabled = ((bool)(resources.GetObject("m_lblSelectedAssem.Enabled"))); this.m_lblSelectedAssem.Font = ((System.Drawing.Font)(resources.GetObject("m_lblSelectedAssem.Font"))); this.m_lblSelectedAssem.Image = ((System.Drawing.Image)(resources.GetObject("m_lblSelectedAssem.Image"))); this.m_lblSelectedAssem.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblSelectedAssem.ImageAlign"))); this.m_lblSelectedAssem.ImageIndex = ((int)(resources.GetObject("m_lblSelectedAssem.ImageIndex"))); this.m_lblSelectedAssem.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_lblSelectedAssem.ImeMode"))); this.m_lblSelectedAssem.Location = ((System.Drawing.Point)(resources.GetObject("m_lblSelectedAssem.Location"))); this.m_lblSelectedAssem.Name = "SelectedAssemblyLabel"; this.m_lblSelectedAssem.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_lblSelectedAssem.RightToLeft"))); this.m_lblSelectedAssem.Size = ((System.Drawing.Size)(resources.GetObject("m_lblSelectedAssem.Size"))); this.m_lblSelectedAssem.Text = resources.GetString("m_lblSelectedAssem.Text"); this.m_lblSelectedAssem.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblSelectedAssem.TextAlign"))); this.m_lblSelectedAssem.Visible = ((bool)(resources.GetObject("m_lblSelectedAssem.Visible"))); // // m_txtSelectedAssem // this.m_txtSelectedAssem.AccessibleDescription = ((string)(resources.GetObject("m_txtSelectedAssem.AccessibleDescription"))); this.m_txtSelectedAssem.AccessibleName = ((string)(resources.GetObject("m_txtSelectedAssem.AccessibleName"))); this.m_txtSelectedAssem.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_txtSelectedAssem.Anchor"))); this.m_txtSelectedAssem.AutoSize = ((bool)(resources.GetObject("m_txtSelectedAssem.AutoSize"))); this.m_txtSelectedAssem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_txtSelectedAssem.BackgroundImage"))); this.m_txtSelectedAssem.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_txtSelectedAssem.Cursor"))); this.m_txtSelectedAssem.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_txtSelectedAssem.Dock"))); this.m_txtSelectedAssem.Enabled = ((bool)(resources.GetObject("m_txtSelectedAssem.Enabled"))); this.m_txtSelectedAssem.Font = ((System.Drawing.Font)(resources.GetObject("m_txtSelectedAssem.Font"))); this.m_txtSelectedAssem.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_txtSelectedAssem.ImeMode"))); this.m_txtSelectedAssem.Location = ((System.Drawing.Point)(resources.GetObject("m_txtSelectedAssem.Location"))); this.m_txtSelectedAssem.MaxLength = ((int)(resources.GetObject("m_txtSelectedAssem.MaxLength"))); this.m_txtSelectedAssem.Multiline = ((bool)(resources.GetObject("m_txtSelectedAssem.Multiline"))); this.m_txtSelectedAssem.Name = "SelectedAssembly"; this.m_txtSelectedAssem.PasswordChar = ((char)(resources.GetObject("m_txtSelectedAssem.PasswordChar"))); this.m_txtSelectedAssem.ReadOnly = true; this.m_txtSelectedAssem.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_txtSelectedAssem.RightToLeft"))); this.m_txtSelectedAssem.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("m_txtSelectedAssem.ScrollBars"))); this.m_txtSelectedAssem.Size = ((System.Drawing.Size)(resources.GetObject("m_txtSelectedAssem.Size"))); this.m_txtSelectedAssem.TabStop = false; this.m_txtSelectedAssem.Text = resources.GetString("m_txtSelectedAssem.Text"); this.m_txtSelectedAssem.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("m_txtSelectedAssem.TextAlign"))); this.m_txtSelectedAssem.Visible = ((bool)(resources.GetObject("m_txtSelectedAssem.Visible"))); this.m_txtSelectedAssem.WordWrap = ((bool)(resources.GetObject("m_txtSelectedAssem.WordWrap"))); // // m_lblHowToTrust // this.m_lblHowToTrust.AccessibleDescription = ((string)(resources.GetObject("m_lblHowToTrust.AccessibleDescription"))); this.m_lblHowToTrust.AccessibleName = ((string)(resources.GetObject("m_lblHowToTrust.AccessibleName"))); this.m_lblHowToTrust.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_lblHowToTrust.Anchor"))); this.m_lblHowToTrust.AutoSize = ((bool)(resources.GetObject("m_lblHowToTrust.AutoSize"))); this.m_lblHowToTrust.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_lblHowToTrust.Cursor"))); this.m_lblHowToTrust.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_lblHowToTrust.Dock"))); this.m_lblHowToTrust.Enabled = ((bool)(resources.GetObject("m_lblHowToTrust.Enabled"))); this.m_lblHowToTrust.Font = ((System.Drawing.Font)(resources.GetObject("m_lblHowToTrust.Font"))); this.m_lblHowToTrust.Image = ((System.Drawing.Image)(resources.GetObject("m_lblHowToTrust.Image"))); this.m_lblHowToTrust.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblHowToTrust.ImageAlign"))); this.m_lblHowToTrust.ImageIndex = ((int)(resources.GetObject("m_lblHowToTrust.ImageIndex"))); this.m_lblHowToTrust.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_lblHowToTrust.ImeMode"))); this.m_lblHowToTrust.Location = ((System.Drawing.Point)(resources.GetObject("m_lblHowToTrust.Location"))); this.m_lblHowToTrust.Name = "HowToTrustLabel"; this.m_lblHowToTrust.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_lblHowToTrust.RightToLeft"))); this.m_lblHowToTrust.Size = ((System.Drawing.Size)(resources.GetObject("m_lblHowToTrust.Size"))); this.m_lblHowToTrust.Text = resources.GetString("m_lblHowToTrust.Text"); this.m_lblHowToTrust.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblHowToTrust.TextAlign"))); this.m_lblHowToTrust.Visible = ((bool)(resources.GetObject("m_lblHowToTrust.Visible"))); // // m_radOneAssem // this.m_radOneAssem.AccessibleDescription = ((string)(resources.GetObject("m_radOneAssem.AccessibleDescription"))); this.m_radOneAssem.AccessibleName = ((string)(resources.GetObject("m_radOneAssem.AccessibleName"))); this.m_radOneAssem.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_radOneAssem.Anchor"))); this.m_radOneAssem.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("m_radOneAssem.Appearance"))); this.m_radOneAssem.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_radOneAssem.BackgroundImage"))); this.m_radOneAssem.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radOneAssem.CheckAlign"))); this.m_radOneAssem.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_radOneAssem.Cursor"))); this.m_radOneAssem.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_radOneAssem.Dock"))); this.m_radOneAssem.Enabled = ((bool)(resources.GetObject("m_radOneAssem.Enabled"))); this.m_radOneAssem.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("m_radOneAssem.FlatStyle"))); this.m_radOneAssem.Font = ((System.Drawing.Font)(resources.GetObject("m_radOneAssem.Font"))); this.m_radOneAssem.Image = ((System.Drawing.Image)(resources.GetObject("m_radOneAssem.Image"))); this.m_radOneAssem.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radOneAssem.ImageAlign"))); this.m_radOneAssem.ImageIndex = ((int)(resources.GetObject("m_radOneAssem.ImageIndex"))); this.m_radOneAssem.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_radOneAssem.ImeMode"))); this.m_radOneAssem.Location = ((System.Drawing.Point)(resources.GetObject("m_radOneAssem.Location"))); this.m_radOneAssem.Name = "TrustThisOneAssembly"; this.m_radOneAssem.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_radOneAssem.RightToLeft"))); this.m_radOneAssem.Size = ((System.Drawing.Size)(resources.GetObject("m_radOneAssem.Size"))); this.m_radOneAssem.Text = resources.GetString("m_radOneAssem.Text"); this.m_radOneAssem.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radOneAssem.TextAlign"))); this.m_radOneAssem.Visible = ((bool)(resources.GetObject("m_radOneAssem.Visible"))); // // m_radPublisher // this.m_radPublisher.AccessibleDescription = ((string)(resources.GetObject("m_radPublisher.AccessibleDescription"))); this.m_radPublisher.AccessibleName = ((string)(resources.GetObject("m_radPublisher.AccessibleName"))); this.m_radPublisher.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_radPublisher.Anchor"))); this.m_radPublisher.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("m_radPublisher.Appearance"))); this.m_radPublisher.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_radPublisher.BackgroundImage"))); this.m_radPublisher.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radPublisher.CheckAlign"))); this.m_radPublisher.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_radPublisher.Cursor"))); this.m_radPublisher.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_radPublisher.Dock"))); this.m_radPublisher.Enabled = ((bool)(resources.GetObject("m_radPublisher.Enabled"))); this.m_radPublisher.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("m_radPublisher.FlatStyle"))); this.m_radPublisher.Font = ((System.Drawing.Font)(resources.GetObject("m_radPublisher.Font"))); this.m_radPublisher.Image = ((System.Drawing.Image)(resources.GetObject("m_radPublisher.Image"))); this.m_radPublisher.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radPublisher.ImageAlign"))); this.m_radPublisher.ImageIndex = ((int)(resources.GetObject("m_radPublisher.ImageIndex"))); this.m_radPublisher.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_radPublisher.ImeMode"))); this.m_radPublisher.Location = ((System.Drawing.Point)(resources.GetObject("m_radPublisher.Location"))); this.m_radPublisher.Name = "TrustByPublisher"; this.m_radPublisher.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_radPublisher.RightToLeft"))); this.m_radPublisher.Size = ((System.Drawing.Size)(resources.GetObject("m_radPublisher.Size"))); this.m_radPublisher.Text = resources.GetString("m_radPublisher.Text"); this.m_radPublisher.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radPublisher.TextAlign"))); this.m_radPublisher.Visible = ((bool)(resources.GetObject("m_radPublisher.Visible"))); // // m_lblPublisher // this.m_lblPublisher.AccessibleDescription = ((string)(resources.GetObject("m_lblPublisher.AccessibleDescription"))); this.m_lblPublisher.AccessibleName = ((string)(resources.GetObject("m_lblPublisher.AccessibleName"))); this.m_lblPublisher.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_lblPublisher.Anchor"))); this.m_lblPublisher.AutoSize = ((bool)(resources.GetObject("m_lblPublisher.AutoSize"))); this.m_lblPublisher.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_lblPublisher.Cursor"))); this.m_lblPublisher.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_lblPublisher.Dock"))); this.m_lblPublisher.Enabled = ((bool)(resources.GetObject("m_lblPublisher.Enabled"))); this.m_lblPublisher.Font = ((System.Drawing.Font)(resources.GetObject("m_lblPublisher.Font"))); this.m_lblPublisher.Image = ((System.Drawing.Image)(resources.GetObject("m_lblPublisher.Image"))); this.m_lblPublisher.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblPublisher.ImageAlign"))); this.m_lblPublisher.ImageIndex = ((int)(resources.GetObject("m_lblPublisher.ImageIndex"))); this.m_lblPublisher.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_lblPublisher.ImeMode"))); this.m_lblPublisher.Location = ((System.Drawing.Point)(resources.GetObject("m_lblPublisher.Location"))); this.m_lblPublisher.Name = "PublisherLabel"; this.m_lblPublisher.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_lblPublisher.RightToLeft"))); this.m_lblPublisher.Size = ((System.Drawing.Size)(resources.GetObject("m_lblPublisher.Size"))); this.m_lblPublisher.Text = resources.GetString("m_lblPublisher.Text"); this.m_lblPublisher.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblPublisher.TextAlign"))); this.m_lblPublisher.Visible = ((bool)(resources.GetObject("m_lblPublisher.Visible"))); // // m_txtPublisher // this.m_txtPublisher.AccessibleDescription = ((string)(resources.GetObject("m_txtPublisher.AccessibleDescription"))); this.m_txtPublisher.AccessibleName = ((string)(resources.GetObject("m_txtPublisher.AccessibleName"))); this.m_txtPublisher.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_txtPublisher.Anchor"))); this.m_txtPublisher.AutoSize = ((bool)(resources.GetObject("m_txtPublisher.AutoSize"))); this.m_txtPublisher.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_txtPublisher.BackgroundImage"))); this.m_txtPublisher.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_txtPublisher.Cursor"))); this.m_txtPublisher.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_txtPublisher.Dock"))); this.m_txtPublisher.Enabled = ((bool)(resources.GetObject("m_txtPublisher.Enabled"))); this.m_txtPublisher.Font = ((System.Drawing.Font)(resources.GetObject("m_txtPublisher.Font"))); this.m_txtPublisher.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_txtPublisher.ImeMode"))); this.m_txtPublisher.Location = ((System.Drawing.Point)(resources.GetObject("m_txtPublisher.Location"))); this.m_txtPublisher.MaxLength = ((int)(resources.GetObject("m_txtPublisher.MaxLength"))); this.m_txtPublisher.Multiline = ((bool)(resources.GetObject("m_txtPublisher.Multiline"))); this.m_txtPublisher.Name = "Publisher"; this.m_txtPublisher.PasswordChar = ((char)(resources.GetObject("m_txtPublisher.PasswordChar"))); this.m_txtPublisher.ReadOnly = true; this.m_txtPublisher.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_txtPublisher.RightToLeft"))); this.m_txtPublisher.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("m_txtPublisher.ScrollBars"))); this.m_txtPublisher.Size = ((System.Drawing.Size)(resources.GetObject("m_txtPublisher.Size"))); this.m_txtPublisher.TabStop = false; this.m_txtPublisher.Text = resources.GetString("m_txtPublisher.Text"); this.m_txtPublisher.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("m_txtPublisher.TextAlign"))); this.m_txtPublisher.Visible = ((bool)(resources.GetObject("m_txtPublisher.Visible"))); this.m_txtPublisher.WordWrap = ((bool)(resources.GetObject("m_txtPublisher.WordWrap"))); // // m_radStrongName // this.m_radStrongName.AccessibleDescription = ((string)(resources.GetObject("m_radStrongName.AccessibleDescription"))); this.m_radStrongName.AccessibleName = ((string)(resources.GetObject("m_radStrongName.AccessibleName"))); this.m_radStrongName.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_radStrongName.Anchor"))); this.m_radStrongName.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("m_radStrongName.Appearance"))); this.m_radStrongName.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_radStrongName.BackgroundImage"))); this.m_radStrongName.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radStrongName.CheckAlign"))); this.m_radStrongName.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_radStrongName.Cursor"))); this.m_radStrongName.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_radStrongName.Dock"))); this.m_radStrongName.Enabled = ((bool)(resources.GetObject("m_radStrongName.Enabled"))); this.m_radStrongName.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("m_radStrongName.FlatStyle"))); this.m_radStrongName.Font = ((System.Drawing.Font)(resources.GetObject("m_radStrongName.Font"))); this.m_radStrongName.Image = ((System.Drawing.Image)(resources.GetObject("m_radStrongName.Image"))); this.m_radStrongName.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radStrongName.ImageAlign"))); this.m_radStrongName.ImageIndex = ((int)(resources.GetObject("m_radStrongName.ImageIndex"))); this.m_radStrongName.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_radStrongName.ImeMode"))); this.m_radStrongName.Location = ((System.Drawing.Point)(resources.GetObject("m_radStrongName.Location"))); this.m_radStrongName.Name = "TrustByStrongName"; this.m_radStrongName.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_radStrongName.RightToLeft"))); this.m_radStrongName.Size = ((System.Drawing.Size)(resources.GetObject("m_radStrongName.Size"))); this.m_radStrongName.Text = resources.GetString("m_radStrongName.Text"); this.m_radStrongName.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_radStrongName.TextAlign"))); this.m_radStrongName.Visible = ((bool)(resources.GetObject("m_radStrongName.Visible"))); // // m_lblPublicKeyToken // this.m_lblPublicKeyToken.AccessibleDescription = ((string)(resources.GetObject("m_lblPublicKeyToken.AccessibleDescription"))); this.m_lblPublicKeyToken.AccessibleName = ((string)(resources.GetObject("m_lblPublicKeyToken.AccessibleName"))); this.m_lblPublicKeyToken.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_lblPublicKeyToken.Anchor"))); this.m_lblPublicKeyToken.AutoSize = ((bool)(resources.GetObject("m_lblPublicKeyToken.AutoSize"))); this.m_lblPublicKeyToken.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_lblPublicKeyToken.Cursor"))); this.m_lblPublicKeyToken.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_lblPublicKeyToken.Dock"))); this.m_lblPublicKeyToken.Enabled = ((bool)(resources.GetObject("m_lblPublicKeyToken.Enabled"))); this.m_lblPublicKeyToken.Font = ((System.Drawing.Font)(resources.GetObject("m_lblPublicKeyToken.Font"))); this.m_lblPublicKeyToken.Image = ((System.Drawing.Image)(resources.GetObject("m_lblPublicKeyToken.Image"))); this.m_lblPublicKeyToken.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblPublicKeyToken.ImageAlign"))); this.m_lblPublicKeyToken.ImageIndex = ((int)(resources.GetObject("m_lblPublicKeyToken.ImageIndex"))); this.m_lblPublicKeyToken.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_lblPublicKeyToken.ImeMode"))); this.m_lblPublicKeyToken.Location = ((System.Drawing.Point)(resources.GetObject("m_lblPublicKeyToken.Location"))); this.m_lblPublicKeyToken.Name = "PublicKeyTokenLabel"; this.m_lblPublicKeyToken.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_lblPublicKeyToken.RightToLeft"))); this.m_lblPublicKeyToken.Size = ((System.Drawing.Size)(resources.GetObject("m_lblPublicKeyToken.Size"))); this.m_lblPublicKeyToken.Text = resources.GetString("m_lblPublicKeyToken.Text"); this.m_lblPublicKeyToken.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_lblPublicKeyToken.TextAlign"))); this.m_lblPublicKeyToken.Visible = ((bool)(resources.GetObject("m_lblPublicKeyToken.Visible"))); // // m_txtPublicKeyToken // this.m_txtPublicKeyToken.AccessibleDescription = ((string)(resources.GetObject("m_txtPublicKeyToken.AccessibleDescription"))); this.m_txtPublicKeyToken.AccessibleName = ((string)(resources.GetObject("m_txtPublicKeyToken.AccessibleName"))); this.m_txtPublicKeyToken.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_txtPublicKeyToken.Anchor"))); this.m_txtPublicKeyToken.AutoSize = ((bool)(resources.GetObject("m_txtPublicKeyToken.AutoSize"))); this.m_txtPublicKeyToken.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_txtPublicKeyToken.BackgroundImage"))); this.m_txtPublicKeyToken.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_txtPublicKeyToken.Cursor"))); this.m_txtPublicKeyToken.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_txtPublicKeyToken.Dock"))); this.m_txtPublicKeyToken.Enabled = ((bool)(resources.GetObject("m_txtPublicKeyToken.Enabled"))); this.m_txtPublicKeyToken.Font = ((System.Drawing.Font)(resources.GetObject("m_txtPublicKeyToken.Font"))); this.m_txtPublicKeyToken.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_txtPublicKeyToken.ImeMode"))); this.m_txtPublicKeyToken.Location = ((System.Drawing.Point)(resources.GetObject("m_txtPublicKeyToken.Location"))); this.m_txtPublicKeyToken.MaxLength = ((int)(resources.GetObject("m_txtPublicKeyToken.MaxLength"))); this.m_txtPublicKeyToken.Multiline = ((bool)(resources.GetObject("m_txtPublicKeyToken.Multiline"))); this.m_txtPublicKeyToken.Name = "PublicKeyToken"; this.m_txtPublicKeyToken.PasswordChar = ((char)(resources.GetObject("m_txtPublicKeyToken.PasswordChar"))); this.m_txtPublicKeyToken.ReadOnly = true; this.m_txtPublicKeyToken.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_txtPublicKeyToken.RightToLeft"))); this.m_txtPublicKeyToken.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("m_txtPublicKeyToken.ScrollBars"))); this.m_txtPublicKeyToken.Size = ((System.Drawing.Size)(resources.GetObject("m_txtPublicKeyToken.Size"))); this.m_txtPublicKeyToken.TabStop = false; this.m_txtPublicKeyToken.Text = resources.GetString("m_txtPublicKeyToken.Text"); this.m_txtPublicKeyToken.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("m_txtPublicKeyToken.TextAlign"))); this.m_txtPublicKeyToken.Visible = ((bool)(resources.GetObject("m_txtPublicKeyToken.Visible"))); this.m_txtPublicKeyToken.WordWrap = ((bool)(resources.GetObject("m_txtPublicKeyToken.WordWrap"))); // // m_chkVersion // this.m_chkVersion.AccessibleDescription = ((string)(resources.GetObject("m_chkVersion.AccessibleDescription"))); this.m_chkVersion.AccessibleName = ((string)(resources.GetObject("m_chkVersion.AccessibleName"))); this.m_chkVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_chkVersion.Anchor"))); this.m_chkVersion.Appearance = ((System.Windows.Forms.Appearance)(resources.GetObject("m_chkVersion.Appearance"))); this.m_chkVersion.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_chkVersion.BackgroundImage"))); this.m_chkVersion.CheckAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_chkVersion.CheckAlign"))); this.m_chkVersion.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_chkVersion.Cursor"))); this.m_chkVersion.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_chkVersion.Dock"))); this.m_chkVersion.Enabled = ((bool)(resources.GetObject("m_chkVersion.Enabled"))); this.m_chkVersion.FlatStyle = ((System.Windows.Forms.FlatStyle)(resources.GetObject("m_chkVersion.FlatStyle"))); this.m_chkVersion.Font = ((System.Drawing.Font)(resources.GetObject("m_chkVersion.Font"))); this.m_chkVersion.Image = ((System.Drawing.Image)(resources.GetObject("m_chkVersion.Image"))); this.m_chkVersion.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_chkVersion.ImageAlign"))); this.m_chkVersion.ImageIndex = ((int)(resources.GetObject("m_chkVersion.ImageIndex"))); this.m_chkVersion.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_chkVersion.ImeMode"))); this.m_chkVersion.Location = ((System.Drawing.Point)(resources.GetObject("m_chkVersion.Location"))); this.m_chkVersion.Name = "VersionCheckbox"; this.m_chkVersion.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_chkVersion.RightToLeft"))); this.m_chkVersion.Size = ((System.Drawing.Size)(resources.GetObject("m_chkVersion.Size"))); this.m_chkVersion.Text = resources.GetString("m_chkVersion.Text"); this.m_chkVersion.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_chkVersion.TextAlign"))); this.m_chkVersion.Visible = ((bool)(resources.GetObject("m_chkVersion.Visible"))); // // m_txtVersion // this.m_txtVersion.AccessibleDescription = ((string)(resources.GetObject("m_txtVersion.AccessibleDescription"))); this.m_txtVersion.AccessibleName = ((string)(resources.GetObject("m_txtVersion.AccessibleName"))); this.m_txtVersion.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_txtVersion.Anchor"))); this.m_txtVersion.AutoSize = ((bool)(resources.GetObject("m_txtVersion.AutoSize"))); this.m_txtVersion.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("m_txtVersion.BackgroundImage"))); this.m_txtVersion.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_txtVersion.Cursor"))); this.m_txtVersion.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_txtVersion.Dock"))); this.m_txtVersion.Enabled = ((bool)(resources.GetObject("m_txtVersion.Enabled"))); this.m_txtVersion.Font = ((System.Drawing.Font)(resources.GetObject("m_txtVersion.Font"))); this.m_txtVersion.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_txtVersion.ImeMode"))); this.m_txtVersion.Location = ((System.Drawing.Point)(resources.GetObject("m_txtVersion.Location"))); this.m_txtVersion.MaxLength = ((int)(resources.GetObject("m_txtVersion.MaxLength"))); this.m_txtVersion.Multiline = ((bool)(resources.GetObject("m_txtVersion.Multiline"))); this.m_txtVersion.Name = "Version"; this.m_txtVersion.PasswordChar = ((char)(resources.GetObject("m_txtVersion.PasswordChar"))); this.m_txtVersion.ReadOnly = true; this.m_txtVersion.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_txtVersion.RightToLeft"))); this.m_txtVersion.ScrollBars = ((System.Windows.Forms.ScrollBars)(resources.GetObject("m_txtVersion.ScrollBars"))); this.m_txtVersion.Size = ((System.Drawing.Size)(resources.GetObject("m_txtVersion.Size"))); this.m_txtVersion.TabStop = false; this.m_txtVersion.Text = resources.GetString("m_txtVersion.Text"); this.m_txtVersion.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("m_txtVersion.TextAlign"))); this.m_txtVersion.Visible = ((bool)(resources.GetObject("m_txtVersion.Visible"))); this.m_txtVersion.WordWrap = ((bool)(resources.GetObject("m_txtVersion.WordWrap"))); // // m_llblHelp // this.m_llblHelp.AccessibleDescription = ((string)(resources.GetObject("m_llblHelp.AccessibleDescription"))); this.m_llblHelp.AccessibleName = ((string)(resources.GetObject("m_llblHelp.AccessibleName"))); this.m_llblHelp.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("m_llblHelp.Anchor"))); this.m_llblHelp.AutoSize = ((bool)(resources.GetObject("m_llblHelp.AutoSize"))); this.m_llblHelp.Cursor = ((System.Windows.Forms.Cursor)(resources.GetObject("m_llblHelp.Cursor"))); this.m_llblHelp.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("m_llblHelp.Dock"))); this.m_llblHelp.Enabled = ((bool)(resources.GetObject("m_llblHelp.Enabled"))); this.m_llblHelp.Font = ((System.Drawing.Font)(resources.GetObject("m_llblHelp.Font"))); this.m_llblHelp.Image = ((System.Drawing.Image)(resources.GetObject("m_llblHelp.Image"))); this.m_llblHelp.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_llblHelp.ImageAlign"))); this.m_llblHelp.ImageIndex = ((int)(resources.GetObject("m_llblHelp.ImageIndex"))); this.m_llblHelp.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("m_llblHelp.ImeMode"))); this.m_llblHelp.LinkArea = ((System.Windows.Forms.LinkArea)(resources.GetObject("m_llblHelp.LinkArea"))); this.m_llblHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_llblHelp.Location"))); this.m_llblHelp.Name = "Help"; this.m_llblHelp.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("m_llblHelp.RightToLeft"))); this.m_llblHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_llblHelp.Size"))); this.m_llblHelp.TabStop = true; this.m_llblHelp.Text = resources.GetString("m_llblHelp.Text"); this.m_llblHelp.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("m_llblHelp.TextAlign"))); this.m_llblHelp.Visible = ((bool)(resources.GetObject("m_llblHelp.Visible"))); m_llblHelp.LinkColor = m_llblHelp.ActiveLinkColor = m_llblHelp.VisitedLinkColor = SystemColors.ActiveCaption; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_radOneAssem, this.m_radPublisher, this.m_radStrongName, this.m_chkVersion, this.m_llblHelp, this.m_txtVersion, this.m_txtPublicKeyToken, this.m_lblPublicKeyToken, this.m_txtPublisher, this.m_lblPublisher, this.m_lblHowToTrust, this.m_txtSelectedAssem, this.m_lblSelectedAssem }); m_radOneAssem.Click += new EventHandler(onRadioButtonChange); m_radPublisher.Click += new EventHandler(onRadioButtonChange); m_radStrongName.Click += new EventHandler(onRadioButtonChange); m_llblHelp.Click += new EventHandler(onHelpClick); // Put in some of our own tweaks now return(1); }// InsertPropSheetPageControls
}// CAssemVerCodebases internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CAssemVerCodebases)); this.m_lblExample4 = new System.Windows.Forms.Label(); this.m_btnDeleteEntry = new System.Windows.Forms.Button(); this.m_dg = new MyDataGrid(); this.m_lblExamples = new System.Windows.Forms.Label(); this.m_lblBindingHelp = new System.Windows.Forms.Label(); this.m_lblExample1 = new System.Windows.Forms.Label(); this.m_lblExample3 = new System.Windows.Forms.Label(); this.m_lblExample2 = new System.Windows.Forms.Label(); this.m_lblExample4.Location = ((System.Drawing.Point)(resources.GetObject("m_lblExample4.Location"))); this.m_lblExample4.Size = ((System.Drawing.Size)(resources.GetObject("m_lblExample4.Size"))); this.m_lblExample4.TabIndex = ((int)(resources.GetObject("m_lblExample4.TabIndex"))); this.m_lblExample4.Text = resources.GetString("m_lblExample4.Text"); m_lblExample4.Name = "Example4"; this.m_btnDeleteEntry.Location = ((System.Drawing.Point)(resources.GetObject("m_btnDeleteEntry.Location"))); this.m_btnDeleteEntry.Size = ((System.Drawing.Size)(resources.GetObject("m_btnDeleteEntry.Size"))); this.m_btnDeleteEntry.TabIndex = ((int)(resources.GetObject("m_btnDeleteEntry.TabIndex"))); this.m_btnDeleteEntry.Text = resources.GetString("m_btnDeleteEntry.Text"); m_btnDeleteEntry.Name = "Delete"; 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"; this.m_lblExamples.Location = ((System.Drawing.Point)(resources.GetObject("m_lblExamples.Location"))); this.m_lblExamples.Size = ((System.Drawing.Size)(resources.GetObject("m_lblExamples.Size"))); this.m_lblExamples.TabIndex = ((int)(resources.GetObject("m_lblExamples.TabIndex"))); this.m_lblExamples.Text = resources.GetString("m_lblExamples.Text"); m_lblExamples.Name = "Examples"; this.m_lblBindingHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblBindingHelp.Location"))); this.m_lblBindingHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblBindingHelp.Size"))); this.m_lblBindingHelp.TabIndex = ((int)(resources.GetObject("m_lblBindingHelp.TabIndex"))); this.m_lblBindingHelp.Text = resources.GetString("m_lblBindingHelp.Text"); m_lblBindingHelp.Name = "BindingHelp"; this.m_lblExample1.Location = ((System.Drawing.Point)(resources.GetObject("m_lblExample1.Location"))); this.m_lblExample1.Size = ((System.Drawing.Size)(resources.GetObject("m_lblExample1.Size"))); this.m_lblExample1.TabIndex = ((int)(resources.GetObject("m_lblExample1.TabIndex"))); this.m_lblExample1.Text = resources.GetString("m_lblExample1.Text"); m_lblExample1.Name = "Example1"; this.m_lblExample3.Location = ((System.Drawing.Point)(resources.GetObject("m_lblExample3.Location"))); this.m_lblExample3.Size = ((System.Drawing.Size)(resources.GetObject("m_lblExample3.Size"))); this.m_lblExample3.TabIndex = ((int)(resources.GetObject("m_lblExample3.TabIndex"))); this.m_lblExample3.Text = resources.GetString("m_lblExample3.Text"); m_lblExample3.Name = "Example3"; this.m_lblExample2.Location = ((System.Drawing.Point)(resources.GetObject("m_lblExample2.Location"))); this.m_lblExample2.Size = ((System.Drawing.Size)(resources.GetObject("m_lblExample2.Size"))); this.m_lblExample2.TabIndex = ((int)(resources.GetObject("m_lblExample2.TabIndex"))); this.m_lblExample2.Text = resources.GetString("m_lblExample2.Text"); m_lblExample2.Name = "Example2"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblExample4, this.m_lblExample3, this.m_lblExample2, this.m_lblExample1, this.m_dg, this.m_btnDeleteEntry, this.m_lblExamples, this.m_lblBindingHelp }); // ----------------- Let's build our data table -------------- // We'll create these variables just so we can use their type... // we don't need to worry about their actual values. m_dt = new DataTable("Stuff"); // Create the columns for this table DataColumn dcReqVersion = new DataColumn(); dcReqVersion.ColumnName = "Requested Version"; dcReqVersion.DataType = typeof(String); m_dt.Columns.Add(dcReqVersion); DataColumn dcURL = new DataColumn(); dcURL.ColumnName = "URI"; dcURL.DataType = typeof(String); m_dt.Columns.Add(dcURL); // Now set up any column-specific behavioral stuff.... // like not letting the checkboxes allow null, setting // column widths, etc. DataGridTableStyle dgts = new DataGridTableStyle(); DataGridTextBoxColumn dgtbcReqVer = new DataGridTextBoxColumn(); DataGridTextBoxColumn dgtbcURL = new DataGridTextBoxColumn(); m_dg.TableStyles.Add(dgts); dgts.MappingName = "Stuff"; dgts.RowHeadersVisible = false; dgts.AllowSorting = false; dgts.ReadOnly = false; // Set up the column info for the Requested Version column dgtbcReqVer.MappingName = "Requested Version"; dgtbcReqVer.HeaderText = CResourceStore.GetString("CAssemVerCodebases:RVColumn"); dgtbcReqVer.Width = ScaleWidth(CResourceStore.GetInt("CAssemVerCodebases:RVColumnWidth")); dgtbcReqVer.ReadOnly = false; dgtbcReqVer.NullText = ""; // Allows us to filter what is typed into the box dgtbcReqVer.TextBox.KeyPress += new KeyPressEventHandler(onVersionKeyPress); dgtbcReqVer.TextBox.TextChanged += new EventHandler(onChange); dgts.GridColumnStyles.Add(dgtbcReqVer); // Set up the column info for the New Version column dgtbcURL.MappingName = "URI"; dgtbcURL.HeaderText = CResourceStore.GetString("CAssemVerCodebases:URIColumn"); dgtbcURL.Width = ScaleWidth(CResourceStore.GetInt("CAssemVerCodebases:URIColumnWidth")); dgtbcURL.NullText = ""; dgtbcURL.TextBox.TextChanged += new EventHandler(onChange); dgts.GridColumnStyles.Add(dgtbcURL); m_ds = new DataSet(); m_ds.Tables.Add(m_dt); m_dg.DataSource = m_dt; m_dg.BackgroundColor = Color.White; //--------------- End Building Data Table ---------------------------- // Some UI Tweaks m_dg.ReadOnly = false; m_dg.CaptionVisible = false; PageControls.Add(m_dg); // Fill in the data PutValuesinPage(); // Set up any callbacks m_btnDeleteEntry.Click += new EventHandler(onDeleteEntireRow); m_dg.TheVertScrollBar.VisibleChanged += new EventHandler(onVisibleChange); // Allows us to enable/disable the delete button m_dg.CurrentCellChanged += new EventHandler(onCellChange); onCellChange(null, null); // See if we need to adjust the width of the headers onVisibleChange(null, null); return(1); }// InsertPropSheetPageControls
}// CSingleCodeGroupProp internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CSingleCodeGroupProp)); this.m_chkOnlyUseThisPL = new System.Windows.Forms.CheckBox(); this.m_txtCGName = new System.Windows.Forms.TextBox(); this.m_lblCGDes = new System.Windows.Forms.Label(); this.m_txtCGDes = new System.Windows.Forms.TextBox(); this.m_chkUseOnlyThisCG = new System.Windows.Forms.CheckBox(); this.m_lblCGName = new System.Windows.Forms.Label(); this.m_gbSpecialConds = new System.Windows.Forms.GroupBox(); this.m_chkOnlyUseThisPL.Location = ((System.Drawing.Point)(resources.GetObject("m_chkOnlyUseThisPL.Location"))); this.m_chkOnlyUseThisPL.Size = ((System.Drawing.Size)(resources.GetObject("m_chkOnlyUseThisPL.Size"))); this.m_chkOnlyUseThisPL.TabIndex = ((int)(resources.GetObject("m_chkOnlyUseThisPL.TabIndex"))); this.m_chkOnlyUseThisPL.Text = resources.GetString("m_chkOnlyUseThisPL.Text"); m_chkOnlyUseThisPL.Name = "LevelFinal"; this.m_txtCGName.Location = ((System.Drawing.Point)(resources.GetObject("m_txtCGName.Location"))); this.m_txtCGName.Size = ((System.Drawing.Size)(resources.GetObject("m_txtCGName.Size"))); this.m_txtCGName.TabIndex = ((int)(resources.GetObject("m_txtCGName.TabIndex"))); m_txtCGName.Name = "Name"; this.m_lblCGDes.Location = ((System.Drawing.Point)(resources.GetObject("m_lblCGDes.Location"))); this.m_lblCGDes.Size = ((System.Drawing.Size)(resources.GetObject("m_lblCGDes.Size"))); this.m_lblCGDes.TabIndex = ((int)(resources.GetObject("m_lblCGDes.TabIndex"))); this.m_lblCGDes.Text = resources.GetString("m_lblCGDes.Text"); m_lblCGDes.Name = "DescriptionLabel"; this.m_txtCGDes.Location = ((System.Drawing.Point)(resources.GetObject("m_txtCGDes.Location"))); this.m_txtCGDes.Multiline = true; this.m_txtCGDes.Size = ((System.Drawing.Size)(resources.GetObject("m_txtCGDes.Size"))); this.m_txtCGDes.TabIndex = ((int)(resources.GetObject("m_txtCGDes.TabIndex"))); m_txtCGDes.Name = "Description"; this.m_chkUseOnlyThisCG.Location = ((System.Drawing.Point)(resources.GetObject("m_chkUseOnlyThisCG.Location"))); this.m_chkUseOnlyThisCG.Size = ((System.Drawing.Size)(resources.GetObject("m_chkUseOnlyThisCG.Size"))); this.m_chkUseOnlyThisCG.TabIndex = ((int)(resources.GetObject("m_chkUseOnlyThisCG.TabIndex"))); this.m_chkUseOnlyThisCG.Text = resources.GetString("m_chkUseOnlyThisCG.Text"); m_chkUseOnlyThisCG.Name = "Exclusive"; this.m_lblCGName.Location = ((System.Drawing.Point)(resources.GetObject("m_lblCGName.Location"))); this.m_lblCGName.Size = ((System.Drawing.Size)(resources.GetObject("m_lblCGName.Size"))); this.m_lblCGName.TabIndex = ((int)(resources.GetObject("m_lblCGName.TabIndex"))); this.m_lblCGName.Text = resources.GetString("m_lblCGName.Text"); m_lblCGName.Name = "NameLabel"; this.m_gbSpecialConds.Controls.AddRange(new System.Windows.Forms.Control[] { this.m_chkOnlyUseThisPL, this.m_chkUseOnlyThisCG }); this.m_gbSpecialConds.Location = ((System.Drawing.Point)(resources.GetObject("m_gbSpecialConds.Location"))); this.m_gbSpecialConds.Size = ((System.Drawing.Size)(resources.GetObject("m_gbSpecialConds.Size"))); this.m_gbSpecialConds.TabIndex = ((int)(resources.GetObject("m_gbSpecialConds.TabIndex"))); this.m_gbSpecialConds.TabStop = false; this.m_gbSpecialConds.Text = resources.GetString("m_gbSpecialConds.Text"); m_gbSpecialConds.Name = "SpecialConditionsBox"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_gbSpecialConds, this.m_lblCGName, this.m_txtCGName, this.m_lblCGDes, this.m_txtCGDes }); // Fill in the data PutValuesinPage(); m_txtCGName.TextChanged += new EventHandler(onChange); m_txtCGDes.TextChanged += new EventHandler(onChange); m_chkOnlyUseThisPL.CheckStateChanged += new EventHandler(onChange); m_chkUseOnlyThisCG.CheckStateChanged += new EventHandler(onChange); return(1); }// InsertPropSheetPageControls
}// 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
}// CGeneralMachineProps internal override int InsertPropSheetPageControls() { m_imgLine = new PictureBox(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CGeneralMachineProps)); this.m_pbComputer = new System.Windows.Forms.PictureBox(); this.m_lblMyComputer = new System.Windows.Forms.Label(); this.m_radConcurrent = new System.Windows.Forms.RadioButton(); this.m_radNormal = new System.Windows.Forms.RadioButton(); this.m_lblGarbageCollector = new System.Windows.Forms.Label(); this.m_lblGarbageCollectorHelp = new System.Windows.Forms.Label(); this.m_lblSecurityHelp = new System.Windows.Forms.Label(); this.m_chkUseSecurity = new System.Windows.Forms.CheckBox(); this.m_pbComputer.Location = ((System.Drawing.Point)(resources.GetObject("m_pbComputer.Location"))); this.m_pbComputer.Size = ((System.Drawing.Size)(resources.GetObject("m_pbComputer.Size"))); this.m_pbComputer.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage; this.m_pbComputer.TabIndex = ((int)(resources.GetObject("m_pbComputer.TabIndex"))); this.m_pbComputer.TabStop = false; m_pbComputer.Name = "ComputerPicture"; this.m_lblMyComputer.Location = ((System.Drawing.Point)(resources.GetObject("m_lblMyComputer.Location"))); this.m_lblMyComputer.Size = ((System.Drawing.Size)(resources.GetObject("m_lblMyComputer.Size"))); this.m_lblMyComputer.TabIndex = ((int)(resources.GetObject("m_lblMyComputer.TabIndex"))); this.m_lblMyComputer.Text = resources.GetString("m_lblMyComputer.Text"); m_lblMyComputer.Name = "MyComputer"; this.m_radConcurrent.Location = ((System.Drawing.Point)(resources.GetObject("m_radConcurrent.Location"))); this.m_radConcurrent.Size = ((System.Drawing.Size)(resources.GetObject("m_radConcurrent.Size"))); this.m_radConcurrent.TabIndex = ((int)(resources.GetObject("m_radConcurrent.TabIndex"))); this.m_radConcurrent.Text = resources.GetString("m_radConcurrent.Text"); m_radConcurrent.Name = "Concurrent"; this.m_radNormal.Location = ((System.Drawing.Point)(resources.GetObject("m_radNormal.Location"))); this.m_radNormal.Size = ((System.Drawing.Size)(resources.GetObject("m_radNormal.Size"))); this.m_radNormal.TabIndex = ((int)(resources.GetObject("m_radNormal.TabIndex"))); this.m_radNormal.Text = resources.GetString("m_radNormal.Text"); m_radNormal.Name = "Normal"; this.m_lblGarbageCollector.Location = ((System.Drawing.Point)(resources.GetObject("m_lblGarbageCollector.Location"))); this.m_lblGarbageCollector.Size = ((System.Drawing.Size)(resources.GetObject("m_lblGarbageCollector.Size"))); this.m_lblGarbageCollector.TabIndex = ((int)(resources.GetObject("m_lblGarbageCollector.TabIndex"))); this.m_lblGarbageCollector.Text = resources.GetString("m_lblGarbageCollector.Text"); m_lblGarbageCollector.Name = "GCLabel"; this.m_lblGarbageCollectorHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblGarbageCollectorHelp.Location"))); this.m_lblGarbageCollectorHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblGarbageCollectorHelp.Size"))); this.m_lblGarbageCollectorHelp.TabIndex = ((int)(resources.GetObject("m_lblGarbageCollectorHelp.TabIndex"))); this.m_lblGarbageCollectorHelp.Text = resources.GetString("m_lblGarbageCollectorHelp.Text"); m_lblGarbageCollectorHelp.Name = "GCHelp"; this.m_lblSecurityHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblSecurityHelp.Location"))); this.m_lblSecurityHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblSecurityHelp.Size"))); this.m_lblSecurityHelp.TabIndex = ((int)(resources.GetObject("m_lblSecurityHelp.TabIndex"))); this.m_lblSecurityHelp.Text = resources.GetString("m_lblSecurityHelp.Text"); m_lblSecurityHelp.Name = "SecurityHelp"; this.m_lblSecurityHelp.Visible = false; this.m_chkUseSecurity.Location = ((System.Drawing.Point)(resources.GetObject("m_chkUseSecurity.Location"))); this.m_chkUseSecurity.Size = ((System.Drawing.Size)(resources.GetObject("m_chkUseSecurity.Size"))); this.m_chkUseSecurity.TabIndex = ((int)(resources.GetObject("m_chkUseSecurity.TabIndex"))); this.m_chkUseSecurity.Text = resources.GetString("m_chkUseSecurity.Text"); m_chkUseSecurity.Name = "UseSecurity"; this.m_chkUseSecurity.Visible = false; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_pbComputer, this.m_radNormal, this.m_radConcurrent, this.m_chkUseSecurity, this.m_lblGarbageCollector, m_lblGarbageCollectorHelp, m_lblSecurityHelp, this.m_lblMyComputer }); this.m_pbComputer.Image = Bitmap.FromHicon(CResourceStore.GetHIcon("mycomputer_ico")); // Draw a line seperating that stuff Bitmap bp = new Bitmap(370, 2); Graphics g = Graphics.FromImage(bp); g.DrawLine(Pens.Black, new Point(0, 0), new Point(370, 0)); g.DrawLine(Pens.White, new Point(0, 1), new Point(370, 1)); m_imgLine.Location = new Point(5, 60); m_imgLine.Size = new Size(370, 2); m_imgLine.TabIndex = 0; m_imgLine.TabStop = false; m_imgLine.Image = bp; PageControls.Add(m_imgLine); // Some more tweaking.... m_radNormal.CheckedChanged += new EventHandler(onChange); m_radConcurrent.CheckedChanged += new EventHandler(onChange); this.m_chkUseSecurity.CheckedChanged += new System.EventHandler(onChange); // Fill in the data PutValuesinPage(); return(1); }// InsertPropSheetPageControls
}// CAppProps //------------------------------------------------- // 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(CAppProps)); this.m_pb = new System.Windows.Forms.PictureBox(); this.m_lblGC = new System.Windows.Forms.Label(); this.m_lblSearchPathHelp = new System.Windows.Forms.Label(); this.m_lblLastModified = new System.Windows.Forms.Label(); this.m_chkSafeBinding = new System.Windows.Forms.CheckBox(); this.m_txtLocation = new System.Windows.Forms.TextBox(); this.m_txtSearchPath = new System.Windows.Forms.TextBox(); this.m_radNormal = new System.Windows.Forms.RadioButton(); this.m_radConcurrent = new System.Windows.Forms.RadioButton(); this.m_lblSearchPath = new System.Windows.Forms.Label(); this.m_lblLocation = new System.Windows.Forms.Label(); this.m_txtLastModified = new System.Windows.Forms.TextBox(); this.m_pbLine = new System.Windows.Forms.PictureBox(); this.m_lblVersion = new System.Windows.Forms.Label(); this.m_lblBindingModeHelp = new System.Windows.Forms.Label(); this.m_lblAppName = new System.Windows.Forms.Label(); this.m_txtVersion = new System.Windows.Forms.TextBox(); this.m_pb.Location = ((System.Drawing.Point)(resources.GetObject("m_pb.Location"))); this.m_pb.Size = ((System.Drawing.Size)(resources.GetObject("m_pb.Size"))); this.m_pb.TabIndex = ((int)(resources.GetObject("m_pb.TabIndex"))); this.m_pb.TabStop = false; m_pb.Name = "AppIcon"; this.m_lblGC.Location = ((System.Drawing.Point)(resources.GetObject("m_lblGC.Location"))); this.m_lblGC.Size = ((System.Drawing.Size)(resources.GetObject("m_lblGC.Size"))); this.m_lblGC.TabIndex = ((int)(resources.GetObject("m_lblGC.TabIndex"))); this.m_lblGC.TabStop = false; this.m_lblGC.Text = resources.GetString("m_lblGC.Text"); m_lblGC.Name = "GCLabel"; this.m_lblSearchPathHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblSearchPathHelp.Location"))); this.m_lblSearchPathHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblSearchPathHelp.Size"))); this.m_lblSearchPathHelp.TabIndex = ((int)(resources.GetObject("m_lblSearchPathHelp.TabIndex"))); this.m_lblSearchPathHelp.Text = resources.GetString("m_lblSearchPathHelp.Text"); m_lblSearchPathHelp.Name = "SearchPathHelp"; this.m_lblLastModified.Location = ((System.Drawing.Point)(resources.GetObject("m_lblLastModified.Location"))); this.m_lblLastModified.Size = ((System.Drawing.Size)(resources.GetObject("m_lblLastModified.Size"))); this.m_lblLastModified.TabIndex = ((int)(resources.GetObject("m_lblLastModified.TabIndex"))); this.m_lblLastModified.Text = resources.GetString("m_lblLastModified.Text"); m_lblLastModified.Name = "LastModifiedLabel"; this.m_chkSafeBinding.Location = ((System.Drawing.Point)(resources.GetObject("m_chkSafeBinding.Location"))); this.m_chkSafeBinding.Size = ((System.Drawing.Size)(resources.GetObject("m_chkSafeBinding.Size"))); this.m_chkSafeBinding.TabIndex = ((int)(resources.GetObject("m_chkSafeBinding.TabIndex"))); this.m_chkSafeBinding.Text = resources.GetString("m_chkSafeBinding.Text"); m_chkSafeBinding.Name = "SafeBinding"; this.m_txtLocation.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtLocation.Location = ((System.Drawing.Point)(resources.GetObject("m_txtLocation.Location"))); this.m_txtLocation.ReadOnly = true; this.m_txtLocation.Size = ((System.Drawing.Size)(resources.GetObject("m_txtLocation.Size"))); this.m_txtLocation.TabStop = false; m_txtLocation.Name = "Location"; this.m_txtSearchPath.Location = ((System.Drawing.Point)(resources.GetObject("m_txtSearchPath.Location"))); this.m_txtSearchPath.Size = ((System.Drawing.Size)(resources.GetObject("m_txtSearchPath.Size"))); this.m_txtSearchPath.TabIndex = ((int)(resources.GetObject("m_txtSearchPath.TabIndex"))); m_txtSearchPath.Name = "SearchPath"; this.m_radNormal.Location = ((System.Drawing.Point)(resources.GetObject("m_radNormal.Location"))); this.m_radNormal.Size = ((System.Drawing.Size)(resources.GetObject("m_radNormal.Size"))); this.m_radNormal.TabIndex = ((int)(resources.GetObject("m_radNormal.TabIndex"))); this.m_radNormal.Text = resources.GetString("m_radNormal.Text"); m_radNormal.Name = "NormalGC"; this.m_radConcurrent.Location = ((System.Drawing.Point)(resources.GetObject("m_radConcurrent.Location"))); this.m_radConcurrent.Size = ((System.Drawing.Size)(resources.GetObject("m_radConcurrent.Size"))); this.m_radConcurrent.TabIndex = ((int)(resources.GetObject("m_radConcurrent.TabIndex"))); this.m_radConcurrent.Text = resources.GetString("m_radConcurrent.Text"); m_radConcurrent.Name = "ConcurrentGC"; this.m_lblSearchPath.Location = ((System.Drawing.Point)(resources.GetObject("m_lblSearchPath.Location"))); this.m_lblSearchPath.Size = ((System.Drawing.Size)(resources.GetObject("m_lblSearchPath.Size"))); this.m_lblSearchPath.TabIndex = ((int)(resources.GetObject("m_lblSearchPath.TabIndex"))); this.m_lblSearchPath.Text = resources.GetString("m_lblSearchPath.Text"); m_lblSearchPath.Name = "SearchPathLabel"; this.m_lblLocation.Location = ((System.Drawing.Point)(resources.GetObject("m_lblLocation.Location"))); this.m_lblLocation.Size = ((System.Drawing.Size)(resources.GetObject("m_lblLocation.Size"))); this.m_lblLocation.TabIndex = ((int)(resources.GetObject("m_lblLocation.TabIndex"))); this.m_lblLocation.Text = resources.GetString("m_lblLocation.Text"); m_lblLocation.Name = "LocationLabel"; this.m_txtLastModified.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtLastModified.Location = ((System.Drawing.Point)(resources.GetObject("m_txtLastModified.Location"))); this.m_txtLastModified.ReadOnly = true; this.m_txtLastModified.Size = ((System.Drawing.Size)(resources.GetObject("m_txtLastModified.Size"))); this.m_txtLastModified.TabStop = false; m_txtLastModified.Name = "LastModified"; this.m_pbLine.Location = ((System.Drawing.Point)(resources.GetObject("m_pbLine.Location"))); this.m_pbLine.Size = ((System.Drawing.Size)(resources.GetObject("m_pbLine.Size"))); this.m_pbLine.TabIndex = ((int)(resources.GetObject("m_pbLine.TabIndex"))); this.m_pbLine.TabStop = false; m_pbLine.Name = "Line"; this.m_lblVersion.Location = ((System.Drawing.Point)(resources.GetObject("m_lblVersion.Location"))); this.m_lblVersion.Size = ((System.Drawing.Size)(resources.GetObject("m_lblVersion.Size"))); this.m_lblVersion.TabIndex = ((int)(resources.GetObject("m_lblVersion.TabIndex"))); this.m_lblVersion.Text = resources.GetString("m_lblVersion.Text"); m_lblVersion.Name = "VersionLabel"; this.m_lblBindingModeHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblBindingModeHelp.Location"))); this.m_lblBindingModeHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblBindingModeHelp.Size"))); this.m_lblBindingModeHelp.TabIndex = ((int)(resources.GetObject("m_lblBindingModeHelp.TabIndex"))); this.m_lblBindingModeHelp.TabStop = false; this.m_lblBindingModeHelp.Text = resources.GetString("m_lblBindingModeHelp.Text"); m_lblBindingModeHelp.Name = "BindingModeHelp"; this.m_lblAppName.Location = ((System.Drawing.Point)(resources.GetObject("m_lblAppName.Location"))); this.m_lblAppName.Size = ((System.Drawing.Size)(resources.GetObject("m_lblAppName.Size"))); this.m_lblAppName.TabIndex = ((int)(resources.GetObject("m_lblAppName.TabIndex"))); m_lblAppName.Name = "AppName"; this.m_txtVersion.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtVersion.Location = ((System.Drawing.Point)(resources.GetObject("m_txtVersion.Location"))); this.m_txtVersion.ReadOnly = true; this.m_txtVersion.Size = ((System.Drawing.Size)(resources.GetObject("m_txtVersion.Size"))); this.m_txtVersion.TabStop = false; m_txtVersion.Name = "Version"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_pb, this.m_pbLine, this.m_lblAppName, this.m_lblLocation, this.m_txtLocation, this.m_lblVersion, this.m_txtVersion, this.m_lblLastModified, this.m_txtLastModified, this.m_lblGC, m_radConcurrent, m_radNormal, m_chkSafeBinding, this.m_lblBindingModeHelp, this.m_lblSearchPath, this.m_txtSearchPath, m_lblSearchPathHelp, }); // Draw a line that can be used to seperate stuff Bitmap bmLine = new Bitmap(m_pbLine.Width, 2); Graphics g = Graphics.FromImage(bmLine); g.DrawLine(Pens.Black, new Point(0, 0), new Point(m_pbLine.Width - 1, 0)); g.DrawLine(Pens.White, new Point(0, 1), new Point(m_pbLine.Width - 1, 1)); // Assign the pictures m_pb.Image = m_bBigPic; m_pbLine.Image = bmLine; // Fill in the data PutValuesinPage(); // Hook up the event handlers m_radNormal.CheckedChanged += new EventHandler(onChange); m_radConcurrent.CheckedChanged += new EventHandler(onChange); m_chkSafeBinding.CheckedChanged += new EventHandler(onChange); m_txtSearchPath.TextChanged += new EventHandler(onChange); m_txtLocation.Select(0, 0); return(1); }// InsertPropSheetPageControls
}// CTrustAppWiz1 internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CTrustAppWiz1)); this.m_radCorpUser = new System.Windows.Forms.RadioButton(); this.m_lblHomeUserDes = new System.Windows.Forms.Label(); this.m_lblCorpUserHelp = new System.Windows.Forms.LinkLabel(); this.m_lblChooseType = new System.Windows.Forms.Label(); this.m_radHomeUser = new System.Windows.Forms.RadioButton(); this.m_lblCorpUserDes = new System.Windows.Forms.Label(); this.m_lblHomeUserHelp = new System.Windows.Forms.LinkLabel(); this.m_radCorpUser.Location = ((System.Drawing.Point)(resources.GetObject("m_radCorpUser.Location"))); this.m_radCorpUser.Size = ((System.Drawing.Size)(resources.GetObject("m_radCorpUser.Size"))); this.m_radCorpUser.TabStop = true; this.m_radCorpUser.Text = resources.GetString("m_radCorpUser.Text"); m_radCorpUser.Name = "User"; this.m_lblHomeUserDes.Location = ((System.Drawing.Point)(resources.GetObject("m_lblHomeUserDes.Location"))); this.m_lblHomeUserDes.Size = ((System.Drawing.Size)(resources.GetObject("m_lblHomeUserDes.Size"))); this.m_lblHomeUserDes.TabIndex = ((int)(resources.GetObject("m_lblHomeUserDes.TabIndex"))); this.m_lblHomeUserDes.Text = resources.GetString("m_lblHomeUserDes.Text"); m_lblHomeUserDes.Name = "MachineDescription"; this.m_lblCorpUserHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblCorpUserHelp.Location"))); this.m_lblCorpUserHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblCorpUserHelp.Size"))); this.m_lblCorpUserHelp.TabIndex = ((int)(resources.GetObject("m_lblCorpUserHelp.TabIndex"))); this.m_lblCorpUserHelp.Text = resources.GetString("m_lblCorpUserHelp.Text"); m_lblCorpUserHelp.Name = "UserHelp"; // Change the color of the linklabel m_lblCorpUserHelp.LinkColor = m_lblCorpUserHelp.ActiveLinkColor = m_lblCorpUserHelp.VisitedLinkColor = SystemColors.ActiveCaption; this.m_lblChooseType.Location = ((System.Drawing.Point)(resources.GetObject("m_lblChooseType.Location"))); this.m_lblChooseType.Size = ((System.Drawing.Size)(resources.GetObject("m_lblChooseType.Size"))); this.m_lblChooseType.TabIndex = ((int)(resources.GetObject("m_lblChooseType.TabIndex"))); this.m_lblChooseType.Text = resources.GetString("m_lblChooseType.Text"); m_lblChooseType.Name = "ChooseType"; this.m_radHomeUser.Location = ((System.Drawing.Point)(resources.GetObject("m_radHomeUser.Location"))); this.m_radHomeUser.Size = ((System.Drawing.Size)(resources.GetObject("m_radHomeUser.Size"))); this.m_radHomeUser.TabStop = true; this.m_radHomeUser.Text = resources.GetString("m_radHomeUser.Text"); m_radHomeUser.Name = "Machine"; this.m_lblCorpUserDes.Location = ((System.Drawing.Point)(resources.GetObject("m_lblCorpUserDes.Location"))); this.m_lblCorpUserDes.Size = ((System.Drawing.Size)(resources.GetObject("m_lblCorpUserDes.Size"))); this.m_lblCorpUserDes.TabIndex = ((int)(resources.GetObject("m_lblCorpUserDes.TabIndex"))); this.m_lblCorpUserDes.Text = resources.GetString("m_lblCorpUserDes.Text"); m_lblCorpUserDes.Name = "UserDescription"; this.m_lblHomeUserHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblHomeUserHelp.Location"))); this.m_lblHomeUserHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblHomeUserHelp.Size"))); this.m_lblHomeUserHelp.TabIndex = ((int)(resources.GetObject("m_lblHomeUserHelp.TabIndex"))); this.m_lblHomeUserHelp.Text = resources.GetString("m_lblHomeUserHelp.Text"); m_lblHomeUserHelp.Name = "MachineHelp"; // Change the color of the linklabel m_lblHomeUserHelp.LinkColor = m_lblHomeUserHelp.ActiveLinkColor = m_lblHomeUserHelp.VisitedLinkColor = SystemColors.ActiveCaption; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblCorpUserHelp, this.m_lblCorpUserDes, this.m_radHomeUser, this.m_radCorpUser, this.m_lblHomeUserHelp, this.m_lblHomeUserDes, this.m_lblChooseType }); // Put in some of our own tweaks now m_radHomeUser.Checked = true; m_lblHomeUserHelp.Click += new EventHandler(onHomeUserHelp); m_lblCorpUserHelp.Click += new EventHandler(onCorpUserHelp); // Turn off the radio buttons the user can't select m_radHomeUser.Enabled = !m_fMachineReadOnly; m_radCorpUser.Enabled = !m_fUserReadOnly; if (m_fMachineReadOnly) { m_radCorpUser.Checked = true; } return(1); }// InsertPropSheetPageControls
}// CNewPermSetWiz1 internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CNewPermSetWiz1)); this.m_btnBrowse = new System.Windows.Forms.Button(); this.m_lblDescription = new System.Windows.Forms.Label(); this.m_radCreateNew = new System.Windows.Forms.RadioButton(); this.m_lblName = new System.Windows.Forms.Label(); this.m_radImportXML = new System.Windows.Forms.RadioButton(); this.m_txtDescription = new System.Windows.Forms.TextBox(); this.m_txtFilename = new System.Windows.Forms.TextBox(); this.m_txtName = new System.Windows.Forms.TextBox(); 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_lblDescription.Location = ((System.Drawing.Point)(resources.GetObject("m_lblDescription.Location"))); this.m_lblDescription.Size = ((System.Drawing.Size)(resources.GetObject("m_lblDescription.Size"))); this.m_lblDescription.TabIndex = ((int)(resources.GetObject("m_lblDescription.TabIndex"))); this.m_lblDescription.Text = resources.GetString("m_lblDescription.Text"); m_lblDescription.Name = "DescriptionLabel"; this.m_radCreateNew.Location = ((System.Drawing.Point)(resources.GetObject("m_radCreateNew.Location"))); this.m_radCreateNew.Size = ((System.Drawing.Size)(resources.GetObject("m_radCreateNew.Size"))); this.m_radCreateNew.TabIndex = ((int)(resources.GetObject("m_radCreateNew.TabIndex"))); this.m_radCreateNew.Text = resources.GetString("m_radCreateNew.Text"); m_radCreateNew.Name = "CreateNew"; 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_radImportXML.Location = ((System.Drawing.Point)(resources.GetObject("m_radImportXML.Location"))); this.m_radImportXML.Size = ((System.Drawing.Size)(resources.GetObject("m_radImportXML.Size"))); this.m_radImportXML.TabIndex = ((int)(resources.GetObject("m_radImportXML.TabIndex"))); this.m_radImportXML.Text = resources.GetString("m_radImportXML.Text"); m_radImportXML.Name = "ImportXML"; this.m_txtDescription.Location = ((System.Drawing.Point)(resources.GetObject("m_txtDescription.Location"))); this.m_txtDescription.Multiline = true; this.m_txtDescription.Size = ((System.Drawing.Size)(resources.GetObject("m_txtDescription.Size"))); this.m_txtDescription.TabIndex = ((int)(resources.GetObject("m_txtDescription.TabIndex"))); this.m_txtDescription.Text = resources.GetString("m_txtDescription.Text"); m_txtDescription.Name = "Description"; 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_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 = ((int)(resources.GetObject("m_txtName.TabIndex"))); this.m_txtName.Text = resources.GetString("m_txtName.Text"); m_txtName.Name = "Name"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_radCreateNew, this.m_radImportXML, this.m_lblName, this.m_txtName, this.m_lblDescription, this.m_txtDescription, this.m_btnBrowse, this.m_txtFilename }); // Hook up event handlers m_txtName.TextChanged += new EventHandler(onTextChange); m_txtFilename.TextChanged += new EventHandler(onTextChange); m_btnBrowse.Click += new EventHandler(onBrowseClick); m_radCreateNew.Click += new EventHandler(onNewRadioButton); m_radImportXML.Click += new EventHandler(onNewRadioButton); m_radCreateNew.Checked = true; onNewRadioButton(null, null); return(1); }// InsertPropSheetPageControls
}// CRemotingProp2 //------------------------------------------------- // 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(CRemotingProp2)); this.m_lblObjectURIs = new System.Windows.Forms.Label(); this.m_dgObjectURIs = new MyDataGrid(); this.m_lblObjectURIs.Location = ((System.Drawing.Point)(resources.GetObject("m_lblObjectURIs.Location"))); this.m_lblObjectURIs.Size = ((System.Drawing.Size)(resources.GetObject("m_lblObjectURIs.Size"))); this.m_lblObjectURIs.TabIndex = ((int)(resources.GetObject("m_lblObjectURIs.TabIndex"))); this.m_lblObjectURIs.Text = resources.GetString("m_lblObjectURIs.Text"); m_lblObjectURIs.Name = "ObjectURILabel"; this.m_dgObjectURIs.Location = ((System.Drawing.Point)(resources.GetObject("m_dgObjectURIs.Location"))); this.m_dgObjectURIs.Size = ((System.Drawing.Size)(resources.GetObject("m_dgObjectURIs.Size"))); this.m_dgObjectURIs.TabIndex = ((int)(resources.GetObject("m_dgObjectURIs.TabIndex"))); m_dgObjectURIs.Name = "Grid"; m_dgObjectURIs.BackgroundColor = Color.White; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_dgObjectURIs, this.m_lblObjectURIs }); //---------- Begin Object URI table ---------------- // Build the first data table m_dtObjectURIs = new DataTable("ObjectURIs"); m_ds = new DataSet(); m_ds.Tables.Add(m_dtObjectURIs); m_dtObjectURIs.DefaultView.AllowNew = false; // Create the "Object Name" Column DataColumn dcKnownOName = new DataColumn(); dcKnownOName.ColumnName = "Object Name"; dcKnownOName.DataType = typeof(String); m_dtObjectURIs.Columns.Add(dcKnownOName); // Create the "URI" Column DataColumn dcKnownURI = new DataColumn(); dcKnownURI.ColumnName = "URI"; dcKnownURI.DataType = typeof(String); m_dtObjectURIs.Columns.Add(dcKnownURI); // Set up the GUI-type stuff for the data grid m_dgObjectURIs.ReadOnly = false; m_dgObjectURIs.CaptionVisible = false; m_dgObjectURIs.ParentRowsVisible = false; // Now set up any column-specific behavioral stuff.... // like setting column widths, etc. DataGridTableStyle dgtsKnown = new DataGridTableStyle(); DataGridTextBoxColumn dgtbcKnownOName = new DataGridTextBoxColumn(); DataGridTextBoxColumn dgtbcKnownURI = new DataGridTextBoxColumn(); m_dgObjectURIs.TableStyles.Add(dgtsKnown); dgtsKnown.MappingName = "ObjectURIs"; dgtsKnown.RowHeadersVisible = false; dgtsKnown.AllowSorting = false; dgtsKnown.ReadOnly = false; // Set up the column info for the Object Type column dgtbcKnownOName.MappingName = "Object Name"; dgtbcKnownOName.HeaderText = CResourceStore.GetString("CRemotingProp2:ObjectNameColumn"); dgtbcKnownOName.ReadOnly = true; dgtbcKnownOName.Width = ScaleWidth(CResourceStore.GetInt("CRemotingProp2:ObjectNameColumnWidth")); dgtsKnown.GridColumnStyles.Add(dgtbcKnownOName); // Set up the column info for the URI column dgtbcKnownURI.MappingName = "URI"; dgtbcKnownURI.HeaderText = CResourceStore.GetString("CRemotingProp2:URIColumn"); dgtbcKnownURI.ReadOnly = false; dgtbcKnownURI.Width = ScaleWidth(CResourceStore.GetInt("CRemotingProp2:URIColumnWidth")); dgtbcKnownURI.TextBox.TextChanged += new EventHandler(onChange); dgtsKnown.GridColumnStyles.Add(dgtbcKnownURI); m_dgObjectURIs.DataSource = m_dtObjectURIs; //---------- End Data Table2 ---------------- // Fill in the data PutValuesinPage(); // See if we should shrink one of the columns if (m_dgObjectURIs.TheVertScrollBar.Visible) { // The vertical scrollbar is visible. It takes up 13 pixels m_dgObjectURIs.TableStyles[0].GridColumnStyles[1].Width -= m_dgObjectURIs.TheVertScrollBar.Width; } return(1); }// InsertPropSheetPageControls
}// 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
}// CTrustAppWiz5 internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CTrustAppWiz5)); this.m_lblDes = new System.Windows.Forms.Label(); this.m_lblFT = new System.Windows.Forms.Label(); this.m_tbTrust = new System.Windows.Forms.TrackBar(); this.m_lblTrustHelp = new System.Windows.Forms.LinkLabel(); this.m_lblTrustDes = new System.Windows.Forms.Label(); this.m_gbChooseTrust = new System.Windows.Forms.GroupBox(); this.m_lblNoT = new System.Windows.Forms.Label(); 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 = "Description"; this.m_lblFT.Location = ((System.Drawing.Point)(resources.GetObject("m_lblFT.Location"))); this.m_lblFT.Size = ((System.Drawing.Size)(resources.GetObject("m_lblFT.Size"))); this.m_lblFT.TabIndex = ((int)(resources.GetObject("m_lblFT.TabIndex"))); this.m_lblFT.Text = resources.GetString("m_lblFT.Text"); m_lblFT.Name = "FullTrustLabel"; m_lblFT.TextAlign = ContentAlignment.MiddleCenter; this.m_tbTrust.Location = ((System.Drawing.Point)(resources.GetObject("m_tbTrust.Location"))); this.m_tbTrust.Maximum = 3; this.m_tbTrust.Orientation = System.Windows.Forms.Orientation.Vertical; this.m_tbTrust.Size = ((System.Drawing.Size)(resources.GetObject("m_tbTrust.Size"))); this.m_tbTrust.TabIndex = ((int)(resources.GetObject("m_tbTrust.TabIndex"))); this.m_tbTrust.Value = 1; this.m_tbTrust.LargeChange = 1; m_tbTrust.Name = "TrustBar"; this.m_lblTrustHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblTrustHelp.Location"))); this.m_lblTrustHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblTrustHelp.Size"))); this.m_lblTrustHelp.TabIndex = ((int)(resources.GetObject("m_lblTrustHelp.TabIndex"))); this.m_lblTrustHelp.Text = resources.GetString("m_lblTrustHelp.Text"); m_lblTrustHelp.Name = "TrustHelp"; // Change the color of the linklabel m_lblTrustHelp.LinkColor = m_lblTrustHelp.ActiveLinkColor = m_lblTrustHelp.VisitedLinkColor = SystemColors.ActiveCaption; // And we're not actually going to show this anymore m_lblTrustHelp.Visible = false; this.m_lblTrustDes.Location = ((System.Drawing.Point)(resources.GetObject("m_lblTrustDes.Location"))); this.m_lblTrustDes.Size = ((System.Drawing.Size)(resources.GetObject("m_lblTrustDes.Size"))); this.m_lblTrustDes.TabIndex = ((int)(resources.GetObject("m_lblTrustDes.TabIndex"))); this.m_lblTrustDes.Text = resources.GetString("m_lblTrustDes.Text"); m_lblTrustDes.Name = "TrustDescription"; this.m_gbChooseTrust.Controls.AddRange(new System.Windows.Forms.Control[] { this.m_lblNoT, this.m_lblFT, this.m_lblTrustHelp, this.m_lblTrustDes, this.m_tbTrust }); this.m_gbChooseTrust.Location = ((System.Drawing.Point)(resources.GetObject("m_gbChooseTrust.Location"))); this.m_gbChooseTrust.Size = ((System.Drawing.Size)(resources.GetObject("m_gbChooseTrust.Size"))); this.m_gbChooseTrust.TabIndex = ((int)(resources.GetObject("m_gbChooseTrust.TabIndex"))); this.m_gbChooseTrust.TabStop = false; this.m_gbChooseTrust.Text = resources.GetString("m_gbChooseTrust.Text"); m_gbChooseTrust.Name = "ChooseTrustBox"; this.m_lblNoT.Location = ((System.Drawing.Point)(resources.GetObject("m_lblNoT.Location"))); this.m_lblNoT.Size = ((System.Drawing.Size)(resources.GetObject("m_lblNoT.Size"))); this.m_lblNoT.TabIndex = ((int)(resources.GetObject("m_lblNoT.TabIndex"))); this.m_lblNoT.Text = resources.GetString("m_lblNoT.Text"); m_lblNoT.Name = "NoTrustLabel"; m_lblNoT.TextAlign = ContentAlignment.MiddleCenter; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_gbChooseTrust, this.m_lblDes }); // Put in some of our own tweaks now m_tbTrust.ValueChanged += new EventHandler(onLevelChange); m_lblTrustHelp.Click += new EventHandler(onTrustHelp); PutValuesInPage(); return(1); }// InsertPropSheetPageControls
}// 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
}// Init internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CEvalAssemWiz3)); this.m_txtAssemEval = new System.Windows.Forms.TextBox(); this.m_tvCodegroups = new System.Windows.Forms.TreeView(); this.m_txtLevelEval = new System.Windows.Forms.TextBox(); this.m_lblAssemEval = new System.Windows.Forms.Label(); this.m_lblViewCodegroups = new System.Windows.Forms.Label(); this.m_lblLevelEval = new System.Windows.Forms.Label(); this.m_txtAssemEval.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtAssemEval.Location = ((System.Drawing.Point)(resources.GetObject("m_txtAssemEval.Location"))); this.m_txtAssemEval.ReadOnly = true; this.m_txtAssemEval.Size = ((System.Drawing.Size)(resources.GetObject("m_txtAssemEval.Size"))); this.m_txtAssemEval.TabStop = false; m_txtAssemEval.Name = "Assembly"; this.m_tvCodegroups.Location = ((System.Drawing.Point)(resources.GetObject("m_tvCodegroups.Location"))); this.m_tvCodegroups.Size = ((System.Drawing.Size)(resources.GetObject("m_tvCodegroups.Size"))); this.m_tvCodegroups.TabIndex = ((int)(resources.GetObject("m_tvCodegroups.TabIndex"))); m_tvCodegroups.Name = "Codegroups"; this.m_txtLevelEval.BorderStyle = System.Windows.Forms.BorderStyle.None; this.m_txtLevelEval.Location = ((System.Drawing.Point)(resources.GetObject("m_txtLevelEval.Location"))); this.m_txtLevelEval.ReadOnly = true; this.m_txtLevelEval.Size = ((System.Drawing.Size)(resources.GetObject("m_txtLevelEval.Size"))); this.m_txtLevelEval.TabStop = false; m_txtLevelEval.Name = "PolicyLevel"; this.m_lblAssemEval.Location = ((System.Drawing.Point)(resources.GetObject("m_lblAssemEval.Location"))); this.m_lblAssemEval.Size = ((System.Drawing.Size)(resources.GetObject("m_lblAssemEval.Size"))); this.m_lblAssemEval.TabIndex = ((int)(resources.GetObject("m_lblAssemEval.TabIndex"))); this.m_lblAssemEval.Text = resources.GetString("m_lblAssemEval.Text"); m_lblAssemEval.Name = "AssemblyLabel"; this.m_lblViewCodegroups.Location = ((System.Drawing.Point)(resources.GetObject("m_lblViewCodegroups.Location"))); this.m_lblViewCodegroups.Size = ((System.Drawing.Size)(resources.GetObject("m_lblViewCodegroups.Size"))); this.m_lblViewCodegroups.TabIndex = ((int)(resources.GetObject("m_lblViewCodegroups.TabIndex"))); this.m_lblViewCodegroups.Text = resources.GetString("m_lblViewCodegroups.Text"); m_lblViewCodegroups.Name = "ViewCodegroupLabel"; this.m_lblLevelEval.Location = ((System.Drawing.Point)(resources.GetObject("m_lblLevelEval.Location"))); this.m_lblLevelEval.Size = ((System.Drawing.Size)(resources.GetObject("m_lblLevelEval.Size"))); this.m_lblLevelEval.TabIndex = ((int)(resources.GetObject("m_lblLevelEval.TabIndex"))); this.m_lblLevelEval.Text = resources.GetString("m_lblLevelEval.Text"); m_lblLevelEval.Name = "PolicyLevelLabel"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_txtLevelEval, this.m_lblViewCodegroups, this.m_tvCodegroups, this.m_txtAssemEval, this.m_lblLevelEval, this.m_lblAssemEval }); // Create an image list of icons we'll be displaying m_ilIcons = new ImageList(); // Keep the order of these consistant with the const's declared at the top // of this class m_ilIcons.Images.Add(System.Drawing.Icon.FromHandle(CResourceStore.GetHIcon("enterprisepolicy_ico"))); m_ilIcons.Images.Add(System.Drawing.Icon.FromHandle(CResourceStore.GetHIcon("machinepolicy_ico"))); m_ilIcons.Images.Add(System.Drawing.Icon.FromHandle(CResourceStore.GetHIcon("userpolicy_ico"))); m_ilIcons.Images.Add(System.Drawing.Icon.FromHandle(CResourceStore.GetHIcon("singlecodegroup_ico"))); m_ilIcons.Images.Add(System.Drawing.Icon.FromHandle(CResourceStore.GetHIcon("customcodegroup_ico"))); m_ilIcons.Images.Add(System.Drawing.Icon.FromHandle(CResourceStore.GetHIcon("info_ico"))); m_tvCodegroups.ImageList = m_ilIcons; return(1); }// InsertPropSheetPageControls
}// CEvalAssemWiz1 internal override int InsertPropSheetPageControls() { System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(CEvalAssemWiz1)); this.m_lblChooseOption = new System.Windows.Forms.Label(); this.m_lblChooseFile = new System.Windows.Forms.Label(); this.m_lblFilename = new System.Windows.Forms.Label(); this.m_lblPolLevel = new System.Windows.Forms.Label(); this.m_cbLevels = new System.Windows.Forms.ComboBox(); this.m_btnBrowse = new System.Windows.Forms.Button(); this.m_radViewCodegroup = new System.Windows.Forms.RadioButton(); this.m_lblChoosePolicy = new System.Windows.Forms.Label(); this.m_txtFilename = new System.Windows.Forms.TextBox(); this.m_radViewPerms = new System.Windows.Forms.RadioButton(); this.m_lblChooseOption.Location = ((System.Drawing.Point)(resources.GetObject("m_lblChooseOption.Location"))); this.m_lblChooseOption.Size = ((System.Drawing.Size)(resources.GetObject("m_lblChooseOption.Size"))); this.m_lblChooseOption.TabIndex = ((int)(resources.GetObject("m_lblChooseOption.TabIndex"))); this.m_lblChooseOption.Text = resources.GetString("m_lblChooseOption.Text"); m_lblChooseOption.Name = "ChooseOptionLabel"; this.m_lblChooseFile.Location = ((System.Drawing.Point)(resources.GetObject("m_lblChooseFile.Location"))); this.m_lblChooseFile.Size = ((System.Drawing.Size)(resources.GetObject("m_lblChooseFile.Size"))); this.m_lblChooseFile.TabIndex = ((int)(resources.GetObject("m_lblChooseFile.TabIndex"))); this.m_lblChooseFile.Text = resources.GetString("m_lblChooseFile.Text"); m_lblChooseFile.Name = "ChooseFileLabel"; this.m_lblFilename.Location = ((System.Drawing.Point)(resources.GetObject("m_lblFilename.Location"))); this.m_lblFilename.Size = ((System.Drawing.Size)(resources.GetObject("m_lblFilename.Size"))); this.m_lblFilename.TabIndex = ((int)(resources.GetObject("m_lblFilename.TabIndex"))); this.m_lblFilename.Text = resources.GetString("m_lblFilename.Text"); m_lblFilename.Name = "FilenameLabel"; this.m_lblPolLevel.Location = ((System.Drawing.Point)(resources.GetObject("m_lblPolLevel.Location"))); this.m_lblPolLevel.Size = ((System.Drawing.Size)(resources.GetObject("m_lblPolLevel.Size"))); this.m_lblPolLevel.TabIndex = ((int)(resources.GetObject("m_lblPolLevel.TabIndex"))); this.m_lblPolLevel.Text = resources.GetString("m_lblPolLevel.Text"); m_lblPolLevel.Name = "PolicyLevelLabel"; this.m_cbLevels.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.m_cbLevels.DropDownWidth = 256; this.m_cbLevels.Location = ((System.Drawing.Point)(resources.GetObject("m_cbLevels.Location"))); this.m_cbLevels.Size = ((System.Drawing.Size)(resources.GetObject("m_cbLevels.Size"))); this.m_cbLevels.TabIndex = ((int)(resources.GetObject("m_cbLevels.TabIndex"))); m_cbLevels.Name = "PolicyLevels"; 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_radViewCodegroup.Location = ((System.Drawing.Point)(resources.GetObject("m_radViewCodegroup.Location"))); this.m_radViewCodegroup.Size = ((System.Drawing.Size)(resources.GetObject("m_radViewCodegroup.Size"))); this.m_radViewCodegroup.TabIndex = ((int)(resources.GetObject("m_radViewCodegroup.TabIndex"))); this.m_radViewCodegroup.Text = resources.GetString("m_radViewCodegroup.Text"); m_radViewCodegroup.Name = "ViewCodegroups"; this.m_lblChoosePolicy.Location = ((System.Drawing.Point)(resources.GetObject("m_lblChoosePolicy.Location"))); this.m_lblChoosePolicy.Size = ((System.Drawing.Size)(resources.GetObject("m_lblChoosePolicy.Size"))); this.m_lblChoosePolicy.TabIndex = ((int)(resources.GetObject("m_lblChoosePolicy.TabIndex"))); this.m_lblChoosePolicy.Text = resources.GetString("m_lblChoosePolicy.Text"); m_lblChoosePolicy.Name = "ChoosePolicyLabel"; 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_radViewPerms.Location = ((System.Drawing.Point)(resources.GetObject("m_radViewPerms.Location"))); this.m_radViewPerms.Size = ((System.Drawing.Size)(resources.GetObject("m_radViewPerms.Size"))); this.m_radViewPerms.TabIndex = ((int)(resources.GetObject("m_radViewPerms.TabIndex"))); this.m_radViewPerms.Text = resources.GetString("m_radViewPerms.Text"); m_radViewPerms.Name = "ViewPermissions"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblChoosePolicy, this.m_lblFilename, this.m_txtFilename, this.m_btnBrowse, this.m_radViewPerms, this.m_radViewCodegroup, this.m_lblPolLevel, this.m_cbLevels, this.m_lblChooseOption, this.m_lblChooseFile }); PutValuesinPage(); // Hook up the event handlers m_txtFilename.TextChanged += new EventHandler(onTextChange); m_btnBrowse.Click += new EventHandler(onBrowse); m_cbLevels.SelectedIndexChanged += new EventHandler(onLevelChange); m_radViewPerms.CheckedChanged += new EventHandler(onObjectiveChange); m_radViewCodegroup.CheckedChanged += new EventHandler(onObjectiveChange); return(1); }// InsertPropSheetPageControls
}// CRemotingProp1 //------------------------------------------------- // 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(CRemotingProp1)); this.m_lblAppLivesHere = new System.Windows.Forms.Label(); m_lblHelp = new System.Windows.Forms.Label(); this.m_lblWellKnownObjectsHelp = new System.Windows.Forms.Label(); this.m_dg = new MyDataGrid(); this.m_lblChooseApp = new System.Windows.Forms.Label(); this.m_cbRemoteApps = new System.Windows.Forms.ComboBox(); this.m_txtAppLocation = new System.Windows.Forms.TextBox(); 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_lblAppLivesHere.Location = ((System.Drawing.Point)(resources.GetObject("m_lblAppLivesHere.Location"))); this.m_lblAppLivesHere.Size = ((System.Drawing.Size)(resources.GetObject("m_lblAppLivesHere.Size"))); this.m_lblAppLivesHere.TabIndex = ((int)(resources.GetObject("m_lblAppLivesHere.TabIndex"))); this.m_lblAppLivesHere.Text = resources.GetString("m_lblAppLivesHere.Text"); m_lblAppLivesHere.Name = "AppLivesHereLabel"; this.m_lblWellKnownObjectsHelp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblWellKnownObjectsHelp.Location"))); this.m_lblWellKnownObjectsHelp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblWellKnownObjectsHelp.Size"))); this.m_lblWellKnownObjectsHelp.TabIndex = ((int)(resources.GetObject("m_lblWellKnownObjectsHelp.TabIndex"))); this.m_lblWellKnownObjectsHelp.Text = resources.GetString("m_lblWellKnownObjectsHelp.Text"); m_lblWellKnownObjectsHelp.Name = "WellKnownObjectsHelp"; 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"; this.m_lblChooseApp.Location = ((System.Drawing.Point)(resources.GetObject("m_lblChooseApp.Location"))); this.m_lblChooseApp.Size = ((System.Drawing.Size)(resources.GetObject("m_lblChooseApp.Size"))); this.m_lblChooseApp.TabIndex = ((int)(resources.GetObject("m_lblChooseApp.TabIndex"))); this.m_lblChooseApp.Text = resources.GetString("m_lblChooseApp.Text"); m_lblChooseApp.Name = "ChooseApp"; this.m_cbRemoteApps.DropDownWidth = 328; this.m_cbRemoteApps.Location = ((System.Drawing.Point)(resources.GetObject("m_cbRemoteApps.Location"))); this.m_cbRemoteApps.Size = ((System.Drawing.Size)(resources.GetObject("m_cbRemoteApps.Size"))); this.m_cbRemoteApps.TabIndex = ((int)(resources.GetObject("m_cbRemoteApps.TabIndex"))); m_cbRemoteApps.Name = "RemoteApps"; this.m_txtAppLocation.Location = ((System.Drawing.Point)(resources.GetObject("m_txtAppLocation.Location"))); this.m_txtAppLocation.Size = ((System.Drawing.Size)(resources.GetObject("m_txtAppLocation.Size"))); this.m_txtAppLocation.TabIndex = ((int)(resources.GetObject("m_txtAppLocation.TabIndex"))); m_txtAppLocation.Name = "AppLocation"; PageControls.AddRange(new System.Windows.Forms.Control[] { this.m_lblWellKnownObjectsHelp, m_lblHelp, this.m_lblChooseApp, this.m_cbRemoteApps, this.m_lblAppLivesHere, this.m_txtAppLocation, this.m_dg }); //---------- Build the Data Table ---------------- m_dt = new DataTable("Remoting"); m_ds = new DataSet(); m_ds.Tables.Add(m_dt); m_dt.DefaultView.AllowNew = false; // Create the "Object Name" Column DataColumn dcObjectName = new DataColumn(); dcObjectName.ColumnName = "Object Name"; dcObjectName.DataType = typeof(String); m_dt.Columns.Add(dcObjectName); // Create the "URL" Column DataColumn dcKnownURL = new DataColumn(); dcKnownURL.ColumnName = "URL"; dcKnownURL.DataType = typeof(String); m_dt.Columns.Add(dcKnownURL); m_dg.ReadOnly = false; m_dg.CaptionVisible = false; m_dg.ParentRowsVisible = false; m_dg.BackgroundColor = Color.White; // Now set up any column-specific behavioral stuff.... // like setting column widths, etc. DataGridTableStyle dgts = new DataGridTableStyle(); DataGridTextBoxColumn dgtbcObjectName = new DataGridTextBoxColumn(); DataGridTextBoxColumn dgtbcURL = new DataGridTextBoxColumn(); m_dg.TableStyles.Add(dgts); dgts.MappingName = "Remoting"; dgts.RowHeadersVisible = false; // Set up the column info for the Object Type column dgtbcObjectName.MappingName = "Object Name"; dgtbcObjectName.HeaderText = CResourceStore.GetString("CRemotingProp1:ObjectNameColumn"); dgtbcObjectName.ReadOnly = true; dgtbcObjectName.Width = ScaleWidth(CResourceStore.GetInt("CRemotingProp1:ObjectNameColumnWidth")); dgts.GridColumnStyles.Add(dgtbcObjectName); // Set up the column info for the URL column dgtbcURL.MappingName = "URL"; dgtbcURL.HeaderText = CResourceStore.GetString("CRemotingProp1:URLColumn"); dgtbcURL.ReadOnly = false; dgtbcURL.Width = ScaleWidth(CResourceStore.GetInt("CRemotingProp1:URLColumnWidth")); dgtbcURL.TextBox.TextChanged += new EventHandler(onTextChange); dgts.GridColumnStyles.Add(dgtbcURL); m_dg.DataSource = m_dt; //---------- End Data Table stuff ---------------- m_cbRemoteApps.SelectedIndexChanged += new EventHandler(onRemotingAppChange); // Fill in the data PutValuesinPage(); // Now finally hook up this event handler m_txtAppLocation.TextChanged += new EventHandler(onTextChange); return(1); }// InsertPropSheetPageControls