public TreeViewImageGenerator(System.Web.UI.WebControls.TreeView treeView) : base(treeView.Site) { this._previewPictureBox = new PictureBox(); this._previewLabel = new System.Windows.Forms.Label(); this._previewPanel = new System.Windows.Forms.Panel(); this._previewFrameTextBox = new System.Windows.Forms.TextBox(); this._okButton = new System.Windows.Forms.Button(); this._cancelButton = new System.Windows.Forms.Button(); this._folderNameLabel = new System.Windows.Forms.Label(); this._folderNameTextBox = new System.Windows.Forms.TextBox(); this._propertiesLabel = new System.Windows.Forms.Label(); this._propertyGrid = new VsPropertyGrid(base.ServiceProvider); this._progressBar = new ProgressBar(); this._progressBarLabel = new System.Windows.Forms.Label(); this._previewPanel.SuspendLayout(); base.SuspendLayout(); this._previewPictureBox.Name = "_previewPictureBox"; this._previewPictureBox.SizeMode = PictureBoxSizeMode.Normal; this._previewPictureBox.TabIndex = 10; this._previewPictureBox.TabStop = false; this._previewPictureBox.BackColor = Color.White; this._previewLabel.Location = new Point(12, 12); this._previewLabel.Name = "_previewLabel"; this._previewLabel.Size = new Size(180, 14); this._previewLabel.TabIndex = 9; this._previewLabel.Text = System.Design.SR.GetString("TreeViewImageGenerator_Preview"); this._previewPanel.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top; this._previewPanel.AutoScroll = true; this._previewPanel.BorderStyle = System.Windows.Forms.BorderStyle.None; this._previewPanel.Controls.AddRange(new Control[] { this._previewPictureBox }); this._previewPanel.Location = new Point(13, 0x1d); this._previewPanel.Name = "_previewPanel"; this._previewPanel.Size = new Size(0xb2, 0xf2); this._previewPanel.TabIndex = 11; this._previewFrameTextBox.Multiline = true; this._previewFrameTextBox.Enabled = false; this._previewFrameTextBox.TabStop = false; this._previewFrameTextBox.Location = new Point(12, 0x1c); this._previewFrameTextBox.Size = new Size(180, 0xf4); this._okButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this._okButton.FlatStyle = FlatStyle.System; this._okButton.Location = new Point(0x178, 0x144); this._okButton.Name = "_okButton"; this._okButton.Size = new Size(0x4b, 0x17); this._okButton.TabIndex = 20; this._okButton.Text = System.Design.SR.GetString("OKCaption"); this._okButton.Click += new EventHandler(this.OnOKButtonClick); this._cancelButton.Anchor = AnchorStyles.Right | AnchorStyles.Bottom; this._cancelButton.FlatStyle = FlatStyle.System; this._cancelButton.Location = new Point(0x1c8, 0x144); this._cancelButton.Name = "_cancelButton"; this._cancelButton.Size = new Size(0x4b, 0x17); this._cancelButton.TabIndex = 0x15; this._cancelButton.Text = System.Design.SR.GetString("CancelCaption"); this._cancelButton.Click += new EventHandler(this.OnCancelButtonClick); this._folderNameLabel.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this._folderNameLabel.Location = new Point(0xd5, 0x117); this._folderNameLabel.Name = "_folderNameLabel"; this._folderNameLabel.Size = new Size(0x13b, 14); this._folderNameLabel.TabIndex = 0x11; this._folderNameLabel.Text = System.Design.SR.GetString("TreeViewImageGenerator_FolderName"); this._folderNameTextBox.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom; this._folderNameTextBox.Location = new Point(0xd5, 0x127); this._folderNameTextBox.Name = "_folderNameTextBox"; this._folderNameTextBox.Size = new Size(0x13b, 20); this._folderNameTextBox.TabIndex = 0x12; this._folderNameTextBox.Text = System.Design.SR.GetString("TreeViewImageGenerator_DefaultFolderName"); this._folderNameTextBox.WordWrap = false; this._folderNameTextBox.TextChanged += new EventHandler(this.OnFolderNameTextBoxTextChanged); this._progressBarLabel.Anchor = AnchorStyles.Left | AnchorStyles.Bottom; this._progressBarLabel.Location = new Point(12, 0x117); this._progressBarLabel.Name = "_progressBarLabel"; this._progressBarLabel.Size = new Size(180, 14); this._progressBarLabel.Text = System.Design.SR.GetString("TreeViewImageGenerator_ProgressBarName"); this._progressBarLabel.Visible = false; this._progressBar.Location = new Point(12, 0x127); this._progressBar.Size = new Size(180, 0x10); this._progressBar.Maximum = 0x10; this._progressBar.Minimum = 0; this._progressBar.Visible = false; this._propertiesLabel.Location = new Point(0xd5, 12); this._propertiesLabel.Name = "_propertiesLabel"; this._propertiesLabel.Size = new Size(0x13b, 14); this._propertiesLabel.TabIndex = 12; this._propertiesLabel.Text = System.Design.SR.GetString("TreeViewImageGenerator_Properties"); this._propertyGrid.Anchor = AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Top; this._propertyGrid.CommandsVisibleIfAvailable = true; this._propertyGrid.LargeButtons = false; this._propertyGrid.LineColor = SystemColors.ScrollBar; this._propertyGrid.Location = new Point(0xd5, 0x1c); this._propertyGrid.Name = "_propertyGrid"; this._propertyGrid.PropertySort = PropertySort.Alphabetical; this._propertyGrid.Size = new Size(0x13b, 0xf4); this._propertyGrid.TabIndex = 13; this._propertyGrid.ToolbarVisible = true; this._propertyGrid.ViewBackColor = SystemColors.Window; this._propertyGrid.ViewForeColor = SystemColors.WindowText; this._propertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(this.OnPropertyGridPropertyValueChanged); base.AcceptButton = this._okButton; base.CancelButton = this._cancelButton; base.ClientSize = new Size(540, 0x167); base.Controls.AddRange(new Control[] { this._propertyGrid, this._propertiesLabel, this._progressBar, this._progressBarLabel, this._folderNameTextBox, this._folderNameLabel, this._cancelButton, this._okButton, this._previewPanel, this._previewLabel, this._previewFrameTextBox }); this.MinimumSize = new Size(540, 0x167); base.Name = "TreeLineImageGenerator"; this.Text = System.Design.SR.GetString("TreeViewImageGenerator_Title"); base.Resize += new EventHandler(this.OnFormResize); this._previewPanel.ResumeLayout(false); base.InitializeForm(); base.ResumeLayout(false); this._imageInfo = new LineImageInfo(); this._propertyGrid.SelectedObject = this._imageInfo; this._treeView = treeView; base.FormBorderStyle = FormBorderStyle.FixedDialog; base.Icon = null; this.UpdatePreview(); }