private void InitializeComponent() { this.components = new Container(); ComponentResourceManager manager = new ComponentResourceManager(typeof(SelectFolderDialog)); this.chkUpdateTree = new CheckBox(); this.cmbFolder = new ComboBox(); this.tvFolders = new VirtualFolderTreeView(); this.tlpButtons = new TableLayoutPanel(); this.btnCancel = new Button(); this.btnOk = new Button(); this.btnMakeFolder = new Button(); this.toolTipError = new ToolTip(this.components); this.bvlButtons = new Bevel(); this.AutoComplete = new AutoCompleteProvider(); Label label = new Label(); Label label2 = new Label(); TableLayoutPanel panel = new TableLayoutPanel(); panel.SuspendLayout(); this.tlpButtons.SuspendLayout(); base.SuspendLayout(); manager.ApplyResources(label, "lblFolder"); label.Name = "lblFolder"; manager.ApplyResources(label2, "lblTree"); label2.Name = "lblTree"; manager.ApplyResources(panel, "tlpBack"); panel.Controls.Add(label, 0, 0); panel.Controls.Add(this.chkUpdateTree, 0, 4); panel.Controls.Add(this.cmbFolder, 0, 1); panel.Controls.Add(label2, 0, 2); panel.Controls.Add(this.tvFolders, 0, 3); panel.GrowStyle = TableLayoutPanelGrowStyle.FixedSize; panel.Name = "tlpBack"; manager.ApplyResources(this.chkUpdateTree, "chkUpdateTree"); this.chkUpdateTree.Checked = true; this.chkUpdateTree.CheckState = CheckState.Checked; this.chkUpdateTree.Name = "chkUpdateTree"; this.chkUpdateTree.UseVisualStyleBackColor = true; this.AutoComplete.SetAutoComplete(this.cmbFolder, true); manager.ApplyResources(this.cmbFolder, "cmbFolder"); this.cmbFolder.FormattingEnabled = true; this.cmbFolder.Name = "cmbFolder"; this.cmbFolder.SelectionChangeCommitted += new EventHandler(this.cmbFolder_SelectionChangeCommitted); this.cmbFolder.Leave += new EventHandler(this.cmbFolder_Leave); this.cmbFolder.DropDownClosed += new EventHandler(this.cmbFolder_DropDownClosed); this.cmbFolder.TextUpdate += new EventHandler(this.cmbFolder_TextUpdate); this.tvFolders.DataBindings.Add(new Binding("ExplorerTheme", Settings.Default, "ExplorerTheme", true, DataSourceUpdateMode.Never)); this.tvFolders.DataBindings.Add(new Binding("FolderNameCasing", VirtualFilePanelSettings.Default, "FolderNameCasing", true, DataSourceUpdateMode.Never)); manager.ApplyResources(this.tvFolders, "tvFolders"); this.tvFolders.DrawMode = TreeViewDrawMode.OwnerDrawAll; this.tvFolders.ExplorerTheme = Settings.Default.ExplorerTheme; this.tvFolders.FadePlusMinus = true; this.tvFolders.FolderNameCasing = VirtualFilePanelSettings.Default.FolderNameCasing; this.tvFolders.FullRowSelect = true; this.tvFolders.HideSelection = false; this.tvFolders.HotTracking = true; this.tvFolders.Name = "tvFolders"; this.tvFolders.ShowAllRootFolders = true; this.tvFolders.ShowItemIcons = false; this.tvFolders.ShowLines = false; this.tvFolders.WatchChanges = Settings.Default.WatchFolderTree; this.tvFolders.AfterSelect += new TreeViewEventHandler(this.treeView_AfterSelect); manager.ApplyResources(this.tlpButtons, "tlpButtons"); this.tlpButtons.Controls.Add(this.btnCancel, 3, 0); this.tlpButtons.Controls.Add(this.btnOk, 1, 0); this.tlpButtons.Controls.Add(this.btnMakeFolder, 2, 0); this.tlpButtons.GrowStyle = TableLayoutPanelGrowStyle.FixedSize; this.tlpButtons.Name = "tlpButtons"; this.btnCancel.DialogResult = DialogResult.Cancel; manager.ApplyResources(this.btnCancel, "btnCancel"); this.btnCancel.Name = "btnCancel"; this.btnCancel.UseVisualStyleBackColor = true; manager.ApplyResources(this.btnOk, "btnOk"); this.btnOk.Name = "btnOk"; this.btnOk.UseVisualStyleBackColor = true; this.btnOk.Click += new EventHandler(this.btnOk_Click); manager.ApplyResources(this.btnMakeFolder, "btnMakeFolder"); this.btnMakeFolder.Name = "btnMakeFolder"; this.btnMakeFolder.UseVisualStyleBackColor = true; this.btnMakeFolder.Click += new EventHandler(this.btnMakeFolder_Click); this.toolTipError.ToolTipIcon = ToolTipIcon.Error; this.toolTipError.ToolTipTitle = "Invalid Folder Name"; manager.ApplyResources(this.bvlButtons, "bvlButtons"); this.bvlButtons.ForeColor = SystemColors.ControlDarkDark; this.bvlButtons.Name = "bvlButtons"; this.bvlButtons.Sides = Border3DSide.Bottom; this.bvlButtons.Style = Border3DStyle.Flat; this.AutoComplete.UseEnvironmentVariablesSource = Settings.Default.UseACSEnvironmentVariables; this.AutoComplete.UseFileSystemSource = Settings.Default.UseACSFileSystem; base.AcceptButton = this.btnOk; manager.ApplyResources(this, "$this"); base.AutoScaleMode = AutoScaleMode.Font; base.CancelButton = this.btnCancel; base.Controls.Add(panel); base.Controls.Add(this.bvlButtons); base.Controls.Add(this.tlpButtons); base.FixMouseWheel = Settings.Default.FixMouseWheel; base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "SelectFolderDialog"; base.ShowInTaskbar = false; base.Shown += new EventHandler(this.SelectFolderDialog_Shown); base.FormClosed += new FormClosedEventHandler(this.SelectFolderDialog_FormClosed); panel.ResumeLayout(false); panel.PerformLayout(); this.tlpButtons.ResumeLayout(false); this.tlpButtons.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }
private void InitializeComponent() { this.components = new Container(); ComponentResourceManager manager = new ComponentResourceManager(typeof(SelectSearchFoldersDialog)); this.lblSelectFolders = new Label(); this.chkProcessSubfolders = new System.Windows.Forms.CheckBox(); this.tvFolders = new VirtualFolderTreeView(); this.imlCheck = new ImageList(this.components); this.btnCancel = new System.Windows.Forms.Button(); this.btnHarddrives = new System.Windows.Forms.Button(); this.btnReset = new System.Windows.Forms.Button(); this.btnOk = new System.Windows.Forms.Button(); this.tlpButtons = new TableLayoutPanel(); this.bvlButtons = new Bevel(); TableLayoutPanel panel = new TableLayoutPanel(); panel.SuspendLayout(); this.tlpButtons.SuspendLayout(); base.SuspendLayout(); manager.ApplyResources(panel, "tlpBack"); panel.Controls.Add(this.lblSelectFolders, 0, 0); panel.Controls.Add(this.chkProcessSubfolders, 0, 2); panel.Controls.Add(this.tvFolders, 0, 1); panel.Name = "tlpBack"; manager.ApplyResources(this.lblSelectFolders, "lblSelectFolders"); this.lblSelectFolders.Name = "lblSelectFolders"; manager.ApplyResources(this.chkProcessSubfolders, "chkProcessSubfolders"); this.chkProcessSubfolders.Name = "chkProcessSubfolders"; this.chkProcessSubfolders.UseVisualStyleBackColor = true; this.chkProcessSubfolders.CheckedChanged += new EventHandler(this.chkProcessSubfolders_CheckedChanged); this.tvFolders.ClearOnCollapse = false; this.tvFolders.DataBindings.Add(new Binding("ExplorerTheme", Settings.Default, "ExplorerTheme", true, DataSourceUpdateMode.Never)); this.tvFolders.DataBindings.Add(new Binding("FolderNameCasing", VirtualFilePanelSettings.Default, "FolderNameCasing", true, DataSourceUpdateMode.Never)); manager.ApplyResources(this.tvFolders, "tvFolders"); this.tvFolders.DrawMode = TreeViewDrawMode.OwnerDrawAll; this.tvFolders.ExplorerTheme = Settings.Default.ExplorerTheme; this.tvFolders.FadePlusMinus = true; this.tvFolders.FolderNameCasing = VirtualFilePanelSettings.Default.FolderNameCasing; this.tvFolders.FullRowSelect = true; this.tvFolders.HotTracking = true; this.tvFolders.Name = "tvFolders"; this.tvFolders.ShowAllRootFolders = true; this.tvFolders.ShowItemIcons = false; this.tvFolders.ShowLines = false; this.tvFolders.StateImageList = this.imlCheck; this.tvFolders.MouseClick += new MouseEventHandler(this.treeView_MouseClick); this.tvFolders.NodeAdded += new TreeViewEventHandler(this.treeView_NodeAdded); this.imlCheck.ColorDepth = ColorDepth.Depth32Bit; manager.ApplyResources(this.imlCheck, "imlCheck"); this.imlCheck.TransparentColor = Color.Transparent; manager.ApplyResources(this.btnCancel, "btnCancel"); this.btnCancel.DialogResult = DialogResult.Cancel; this.btnCancel.Name = "btnCancel"; this.btnCancel.UseVisualStyleBackColor = true; manager.ApplyResources(this.btnHarddrives, "btnHarddrives"); this.btnHarddrives.Name = "btnHarddrives"; this.btnHarddrives.UseVisualStyleBackColor = true; this.btnHarddrives.Click += new EventHandler(this.btnHarddrives_Click); manager.ApplyResources(this.btnReset, "btnReset"); this.btnReset.Name = "btnReset"; this.btnReset.UseVisualStyleBackColor = true; this.btnReset.Click += new EventHandler(this.btnReset_Click); manager.ApplyResources(this.btnOk, "btnOk"); this.btnOk.DialogResult = DialogResult.OK; this.btnOk.Name = "btnOk"; this.btnOk.UseVisualStyleBackColor = true; manager.ApplyResources(this.tlpButtons, "tlpButtons"); this.tlpButtons.Controls.Add(this.btnCancel, 4, 0); this.tlpButtons.Controls.Add(this.btnHarddrives, 3, 0); this.tlpButtons.Controls.Add(this.btnReset, 2, 0); this.tlpButtons.Controls.Add(this.btnOk, 1, 0); this.tlpButtons.GrowStyle = TableLayoutPanelGrowStyle.FixedSize; this.tlpButtons.Name = "tlpButtons"; manager.ApplyResources(this.bvlButtons, "bvlButtons"); this.bvlButtons.ForeColor = SystemColors.ControlDarkDark; this.bvlButtons.Name = "bvlButtons"; this.bvlButtons.Sides = Border3DSide.Bottom; this.bvlButtons.Style = Border3DStyle.Flat; base.AcceptButton = this.btnOk; manager.ApplyResources(this, "$this"); base.AutoScaleMode = AutoScaleMode.Font; base.CancelButton = this.btnCancel; base.Controls.Add(panel); base.Controls.Add(this.bvlButtons); base.Controls.Add(this.tlpButtons); base.MaximizeBox = false; base.MinimizeBox = false; base.Name = "SelectSearchFoldersDialog"; base.ShowInTaskbar = false; panel.ResumeLayout(false); panel.PerformLayout(); this.tlpButtons.ResumeLayout(false); this.tlpButtons.PerformLayout(); base.ResumeLayout(false); base.PerformLayout(); }