void ReleaseDesignerOutlets() { if (ConnectionIcon != null) { ConnectionIcon.Dispose(); ConnectionIcon = null; } if (DropFilesHereText != null) { DropFilesHereText.Dispose(); DropFilesHereText = null; } if (ItemColorWell != null) { ItemColorWell.Dispose(); ItemColorWell = null; } if (MenuLayoutController != null) { MenuLayoutController.Dispose(); MenuLayoutController = null; } if (MenuTreeScrollView != null) { MenuTreeScrollView.Dispose(); MenuTreeScrollView = null; } if (NewFolderButton != null) { NewFolderButton.Dispose(); NewFolderButton = null; } if (PowerStateIcon != null) { PowerStateIcon.Dispose(); PowerStateIcon = null; } if (MenuDifferencesIcon != null) { MenuDifferencesIcon.Dispose(); MenuDifferencesIcon = null; } if (RemoveItemButton != null) { RemoveItemButton.Dispose(); RemoveItemButton = null; } }
/// <summary> /// Make a shadow copy of the element at the current state which stays available even the element is gone. /// </summary> /// <returns>A shadow copy of the current element.</returns> public new BasicBrowseFolderDialogData GetDataCopy() { var data = new BasicBrowseFolderDialogData(); FillData(data); data.DescriptionText = GetSafeData(() => { if (DescriptionText == null) { return(null); } return(DescriptionText.GetDataCopy()); }); data.NewFolderButton = GetSafeData(() => { if (NewFolderButton == null) { return(null); } return(NewFolderButton.GetDataCopy()); }); data.OKButton = GetSafeData(() => { if (OKButton == null) { return(null); } return(OKButton.GetDataCopy()); }); data.CancelButton = GetSafeData(() => { if (CancelButton == null) { return(null); } return(CancelButton.GetDataCopy()); }); data.FolderTree = GetSafeData(() => { if (FolderTree == null) { return(null); } return(FolderTree.GetDataCopy()); }); return(data); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PublishFolderPicker)); this.destinationTree = new System.Windows.Forms.TreeView(); this.imageList = new System.Windows.Forms.ImageList(this.components); this.buttonOK = new System.Windows.Forms.Button(); this.buttonCancel = new System.Windows.Forms.Button(); this.label1 = new System.Windows.Forms.Label(); this.buttonNewFolder = new OpenLiveWriter.Controls.NewFolderButton(this.components); this.SuspendLayout(); // // destinationTree // this.destinationTree.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.destinationTree.HideSelection = false; this.destinationTree.HotTracking = true; this.destinationTree.ImageIndex = 0; this.destinationTree.ImageList = this.imageList; this.destinationTree.Location = new System.Drawing.Point(11, 33); this.destinationTree.Name = "destinationTree"; this.destinationTree.SelectedImageIndex = 0; this.destinationTree.Size = new System.Drawing.Size(312, 265); this.destinationTree.TabIndex = 0; this.destinationTree.MouseDown += new System.Windows.Forms.MouseEventHandler(this.destinationTree_MouseDown); // // imageList // this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream"))); this.imageList.TransparentColor = System.Drawing.Color.Transparent; this.imageList.Images.SetKeyName(0, ""); this.imageList.Images.SetKeyName(1, ""); this.imageList.Images.SetKeyName(2, ""); this.imageList.Images.SetKeyName(3, ""); this.imageList.Images.SetKeyName(4, ""); // // buttonOK // this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonOK.FlatStyle = System.Windows.Forms.FlatStyle.System; this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonOK.Location = new System.Drawing.Point(133, 306); this.buttonOK.Name = "buttonOK"; this.buttonOK.Size = new System.Drawing.Size(90, 27); this.buttonOK.TabIndex = 1; this.buttonOK.Text = "OK"; this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); // // buttonCancel // this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.buttonCancel.FlatStyle = System.Windows.Forms.FlatStyle.System; this.buttonCancel.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.buttonCancel.Location = new System.Drawing.Point(232, 306); this.buttonCancel.Name = "buttonCancel"; this.buttonCancel.Size = new System.Drawing.Size(90, 27); this.buttonCancel.TabIndex = 2; this.buttonCancel.Text = "Cancel"; this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click); // // label1 // this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System; this.label1.Location = new System.Drawing.Point(11, 11); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(247, 19); this.label1.TabIndex = 5; this.label1.Text = "Select a folder to publish to:"; // // buttonNewFolder // this.buttonNewFolder.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton; this.buttonNewFolder.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.buttonNewFolder.AutoSizeHeight = true; this.buttonNewFolder.AutoSizeWidth = true; this.buttonNewFolder.BitmapDisabled = ((System.Drawing.Bitmap)(resources.GetObject("buttonNewFolder.BitmapDisabled"))); this.buttonNewFolder.BitmapEnabled = ((System.Drawing.Bitmap)(resources.GetObject("buttonNewFolder.BitmapEnabled"))); this.buttonNewFolder.BitmapSelected = ((System.Drawing.Bitmap)(resources.GetObject("buttonNewFolder.BitmapSelected"))); this.buttonNewFolder.ButtonText = "New Folder"; this.buttonNewFolder.Location = new System.Drawing.Point(208, 5); this.buttonNewFolder.Name = "buttonNewFolder"; this.buttonNewFolder.Size = new System.Drawing.Size(117, 26); this.buttonNewFolder.TabIndex = 3; this.buttonNewFolder.ToolTip = "Create a new folder"; this.buttonNewFolder.Click += new System.EventHandler(this.buttonNewFolder_Click); // // PublishFolderPicker // this.AcceptButton = this.buttonOK; this.CancelButton = this.buttonCancel; this.ClientSize = new System.Drawing.Size(336, 341); this.Controls.Add(this.buttonNewFolder); this.Controls.Add(this.label1); this.Controls.Add(this.buttonOK); this.Controls.Add(this.buttonCancel); this.Controls.Add(this.destinationTree); this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "PublishFolderPicker"; this.Text = "Browse For Folder"; this.ResumeLayout(false); }