Пример #1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.layerControl1              = new MapInfo.Windows.Controls.LayerControl();
     this.mapControl1                = new MapInfo.Windows.Controls.MapControl();
     this.checkBoxShowAddButton      = new System.Windows.Forms.CheckBox();
     this.checkBoxToolTips           = new System.Windows.Forms.CheckBox();
     this.checkBoxShowMapNode        = new System.Windows.Forms.CheckBox();
     this.checkBoxConfirmationPrompt = new System.Windows.Forms.CheckBox();
     this.buttonLabelLayers          = new System.Windows.Forms.Button();
     this.buttonDisableRemovals      = new System.Windows.Forms.Button();
     this.buttonDisableMapViewTab    = new System.Windows.Forms.Button();
     this.buttonRemoveMapViewTab     = new System.Windows.Forms.Button();
     this.buttonAddMenuItem          = new System.Windows.Forms.Button();
     this.buttonCustomStyleTab       = new System.Windows.Forms.Button();
     this.checkBoxShowContextMenu    = new MapInfo.Windows.Controls.CheckBox();
     this.SuspendLayout();
     //
     // layerControl1
     //
     this.layerControl1.AllowRenaming = true;
     this.layerControl1.Anchor        = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                              | System.Windows.Forms.AnchorStyles.Left)));
     this.layerControl1.ConfirmLayerRemoval         = true;
     this.layerControl1.EditNameAfterInsertingLayer = true;
     this.layerControl1.Location        = new System.Drawing.Point(8, 8);
     this.layerControl1.Map             = null;
     this.layerControl1.Name            = "layerControl1";
     this.layerControl1.ShowContextMenu = true;
     this.layerControl1.ShowMapNode     = true;
     //this.layerControl1.ShowPredominantGeometryType = true;
     this.layerControl1.Size     = new System.Drawing.Size(285, 440);
     this.layerControl1.TabIndex = 0;
     this.layerControl1.UpdateWhenCollectionChanges = true;
     this.layerControl1.UpdateWhenMapViewChanges    = true;
     //
     // mapControl1
     //
     this.mapControl1.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.mapControl1.Location               = new System.Drawing.Point(301, 8);
     this.mapControl1.Name                   = "mapControl1";
     this.mapControl1.Size                   = new System.Drawing.Size(347, 208);
     this.mapControl1.TabIndex               = 1;
     this.mapControl1.Text                   = "mapControl1";
     this.mapControl1.Tools.LeftButtonTool   = "Arrow";
     this.mapControl1.Tools.MiddleButtonTool = "Pan";
     //
     // checkBoxShowAddButton
     //
     this.checkBoxShowAddButton.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBoxShowAddButton.Checked         = true;
     this.checkBoxShowAddButton.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBoxShowAddButton.Location        = new System.Drawing.Point(304, 224);
     this.checkBoxShowAddButton.Name            = "checkBoxShowAddButton";
     this.checkBoxShowAddButton.Size            = new System.Drawing.Size(336, 24);
     this.checkBoxShowAddButton.TabIndex        = 5;
     this.checkBoxShowAddButton.Text            = "Show the Add button on the Layer Control toolbar";
     this.checkBoxShowAddButton.CheckedChanged += new System.EventHandler(this.checkBoxShowAddButton_CheckedChanged);
     //
     // checkBoxToolTips
     //
     this.checkBoxToolTips.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBoxToolTips.Checked         = true;
     this.checkBoxToolTips.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBoxToolTips.Location        = new System.Drawing.Point(304, 248);
     this.checkBoxToolTips.Name            = "checkBoxToolTips";
     this.checkBoxToolTips.Size            = new System.Drawing.Size(336, 24);
     this.checkBoxToolTips.TabIndex        = 10;
     this.checkBoxToolTips.Text            = "Show ToolTips over the layers tree";
     this.checkBoxToolTips.CheckedChanged += new System.EventHandler(this.checkBoxToolTips_CheckedChanged);
     //
     // checkBoxShowMapNode
     //
     this.checkBoxShowMapNode.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBoxShowMapNode.Checked         = true;
     this.checkBoxShowMapNode.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBoxShowMapNode.Location        = new System.Drawing.Point(304, 272);
     this.checkBoxShowMapNode.Name            = "checkBoxShowMapNode";
     this.checkBoxShowMapNode.Size            = new System.Drawing.Size(336, 24);
     this.checkBoxShowMapNode.TabIndex        = 15;
     this.checkBoxShowMapNode.Text            = "Show a Map node at the root of the layers tree";
     this.checkBoxShowMapNode.CheckedChanged += new System.EventHandler(this.checkBoxShowMapNode_CheckedChanged);
     //
     // checkBoxConfirmationPrompt
     //
     this.checkBoxConfirmationPrompt.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBoxConfirmationPrompt.Checked         = true;
     this.checkBoxConfirmationPrompt.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBoxConfirmationPrompt.Location        = new System.Drawing.Point(304, 296);
     this.checkBoxConfirmationPrompt.Name            = "checkBoxConfirmationPrompt";
     this.checkBoxConfirmationPrompt.Size            = new System.Drawing.Size(336, 24);
     this.checkBoxConfirmationPrompt.TabIndex        = 20;
     this.checkBoxConfirmationPrompt.Text            = "Display \"Do you want to remove...\" confirmation prompts";
     this.checkBoxConfirmationPrompt.CheckedChanged += new System.EventHandler(this.checkBoxConfirmationPrompt_CheckedChanged);
     //
     // buttonLabelLayers
     //
     this.buttonLabelLayers.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.buttonLabelLayers.Location = new System.Drawing.Point(299, 389);
     this.buttonLabelLayers.Name     = "buttonLabelLayers";
     this.buttonLabelLayers.Size     = new System.Drawing.Size(168, 23);
     this.buttonLabelLayers.TabIndex = 60;
     this.buttonLabelLayers.Text     = "Simplify LabelLayer nodes...";
     this.buttonLabelLayers.Click   += new System.EventHandler(this.buttonLabelLayers_Click);
     //
     // buttonDisableRemovals
     //
     this.buttonDisableRemovals.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.buttonDisableRemovals.Location = new System.Drawing.Point(299, 359);
     this.buttonDisableRemovals.Name     = "buttonDisableRemovals";
     this.buttonDisableRemovals.Size     = new System.Drawing.Size(168, 23);
     this.buttonDisableRemovals.TabIndex = 40;
     this.buttonDisableRemovals.Text     = "Disable layer removal...";
     this.buttonDisableRemovals.Click   += new System.EventHandler(this.buttonDisableRemovals_Click);
     //
     // buttonDisableMapViewTab
     //
     this.buttonDisableMapViewTab.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.buttonDisableMapViewTab.Location = new System.Drawing.Point(472, 359);
     this.buttonDisableMapViewTab.Name     = "buttonDisableMapViewTab";
     this.buttonDisableMapViewTab.Size     = new System.Drawing.Size(176, 23);
     this.buttonDisableMapViewTab.TabIndex = 50;
     this.buttonDisableMapViewTab.Text     = "Disable the Map\'s View tab...";
     this.buttonDisableMapViewTab.Click   += new System.EventHandler(this.buttonDisableMapViewTab_Click);
     //
     // buttonRemoveMapViewTab
     //
     this.buttonRemoveMapViewTab.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.buttonRemoveMapViewTab.Location = new System.Drawing.Point(472, 389);
     this.buttonRemoveMapViewTab.Name     = "buttonRemoveMapViewTab";
     this.buttonRemoveMapViewTab.Size     = new System.Drawing.Size(176, 23);
     this.buttonRemoveMapViewTab.TabIndex = 70;
     this.buttonRemoveMapViewTab.Text     = "Remove the Map\'s View tab...";
     this.buttonRemoveMapViewTab.Click   += new System.EventHandler(this.buttonRemoveMapViewTab_Click);
     //
     // buttonAddMenuItem
     //
     this.buttonAddMenuItem.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.buttonAddMenuItem.Location = new System.Drawing.Point(472, 419);
     this.buttonAddMenuItem.Name     = "buttonAddMenuItem";
     this.buttonAddMenuItem.Size     = new System.Drawing.Size(177, 23);
     this.buttonAddMenuItem.TabIndex = 90;
     this.buttonAddMenuItem.Text     = "Add custom menu items...";
     this.buttonAddMenuItem.Click   += new System.EventHandler(this.buttonAddMenuItem_Click);
     //
     // buttonCustomStyleTab
     //
     this.buttonCustomStyleTab.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.buttonCustomStyleTab.Location = new System.Drawing.Point(299, 419);
     this.buttonCustomStyleTab.Name     = "buttonCustomStyleTab";
     this.buttonCustomStyleTab.Size     = new System.Drawing.Size(168, 23);
     this.buttonCustomStyleTab.TabIndex = 80;
     this.buttonCustomStyleTab.Text     = "Add a custom Map Style tab...";
     this.buttonCustomStyleTab.Click   += new System.EventHandler(this.buttonCustomStyleTab_Click);
     //
     // checkBoxShowContextMenu
     //
     this.checkBoxShowContextMenu.Anchor          = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.checkBoxShowContextMenu.Checked         = true;
     this.checkBoxShowContextMenu.CheckState      = System.Windows.Forms.CheckState.Checked;
     this.checkBoxShowContextMenu.FlatStyle       = System.Windows.Forms.FlatStyle.System;
     this.checkBoxShowContextMenu.Location        = new System.Drawing.Point(305, 319);
     this.checkBoxShowContextMenu.Name            = "checkBoxShowContextMenu";
     this.checkBoxShowContextMenu.Size            = new System.Drawing.Size(335, 24);
     this.checkBoxShowContextMenu.TabIndex        = 25;
     this.checkBoxShowContextMenu.Text            = "Show context menu when user right-clicks in layer tree";
     this.checkBoxShowContextMenu.CheckedChanged += new System.EventHandler(this.checkBoxContextMenuChanged);
     //
     // LayerControlDemoForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(656, 454);
     this.Controls.Add(this.checkBoxShowContextMenu);
     this.Controls.Add(this.buttonCustomStyleTab);
     this.Controls.Add(this.buttonAddMenuItem);
     this.Controls.Add(this.buttonRemoveMapViewTab);
     this.Controls.Add(this.buttonDisableMapViewTab);
     this.Controls.Add(this.buttonDisableRemovals);
     this.Controls.Add(this.buttonLabelLayers);
     this.Controls.Add(this.checkBoxConfirmationPrompt);
     this.Controls.Add(this.checkBoxShowMapNode);
     this.Controls.Add(this.checkBoxToolTips);
     this.Controls.Add(this.checkBoxShowAddButton);
     this.Controls.Add(this.mapControl1);
     this.Controls.Add(this.layerControl1);
     this.MinimumSize = new System.Drawing.Size(660, 470);
     this.Name        = "LayerControlDemoForm";
     this.Text        = "Layer Control Demo";
     this.ResumeLayout(false);
 }