예제 #1
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MapForm));
            this.panel1                      = new System.Windows.Forms.Panel();
            this.buttonSearch                = new OpenLiveWriter.InternalWriterPlugin.Controls.MapSearchButton();
            this.mapLogoControl              = new OpenLiveWriter.InternalWriterPlugin.Controls.MapLogoControl();
            this.label1                      = new System.Windows.Forms.Label();
            this.textBoxAddress              = new System.Windows.Forms.TextBox();
            this.mapControl                  = new OpenLiveWriter.InternalWriterPlugin.MapControl();
            this.buttonOK                    = new System.Windows.Forms.Button();
            this.buttonCancel                = new System.Windows.Forms.Button();
            this.buttonGotoBirdseye          = new OpenLiveWriter.InternalWriterPlugin.Controls.MapBirdsEyeButton();
            this.trackBarZoom                = new System.Windows.Forms.TrackBar();
            this.comboBoxStyle               = new OpenLiveWriter.InternalWriterPlugin.Controls.MapViewComboBox();
            this.mapScrollControl            = new OpenLiveWriter.InternalWriterPlugin.Controls.MapScrollControl();
            this.cbShowLabels                = new System.Windows.Forms.CheckBox();
            this.panelNormal                 = new System.Windows.Forms.Panel();
            this.mapZoomPlusButton           = new OpenLiveWriter.InternalWriterPlugin.Controls.MapZoomPlusButton();
            this.buttonZoomMinus             = new OpenLiveWriter.InternalWriterPlugin.Controls.MapZoomMinusButton();
            this.panelBirdseye               = new System.Windows.Forms.Panel();
            this.mapBirdsEyeDirectionControl = new OpenLiveWriter.InternalWriterPlugin.Controls.MapBirdsEyeDirectionControl();
            this.mapBirdsEyeZoomControl      = new OpenLiveWriter.InternalWriterPlugin.Controls.MapBirdsEyeZoomControl();
            this.mapTipControl               = new Label();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.trackBarZoom)).BeginInit();
            this.panelNormal.SuspendLayout();
            this.panelBirdseye.SuspendLayout();
            this.SuspendLayout();
            //
            // panel1
            //
            this.panel1.Anchor =
                ((System.Windows.Forms.AnchorStyles)
                     (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                       | System.Windows.Forms.AnchorStyles.Right)));
            this.panel1.BackColor = System.Drawing.SystemColors.Control;
            this.panel1.Controls.Add(this.buttonSearch);
            this.panel1.Controls.Add(this.mapLogoControl);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.textBoxAddress);
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name     = "panel1";
            this.panel1.Size     = new System.Drawing.Size(642, 52);
            this.panel1.TabIndex = 0;
            //
            // buttonSearch
            //
            this.buttonSearch.Anchor =
                ((System.Windows.Forms.AnchorStyles)
                     ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonSearch.ImeMode  = System.Windows.Forms.ImeMode.NoControl;
            this.buttonSearch.Location = new System.Drawing.Point(584, 27);
            this.buttonSearch.Name     = "buttonSearch";
            this.buttonSearch.Size     = new System.Drawing.Size(24, 24);
            this.buttonSearch.TabIndex = 2;
            this.buttonSearch.Click   += new System.EventHandler(this.buttonSearch_Click);
            //
            // mapLogoControl
            //
            this.mapLogoControl.Location = new System.Drawing.Point(0, 2);
            this.mapLogoControl.Name     = "mapLogoControl";
            this.mapLogoControl.Size     = new System.Drawing.Size(184, 51);
            this.mapLogoControl.TabIndex = 3;
            this.mapLogoControl.TabStop  = false;
            //
            // label1
            //
            this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.label1.ImeMode   = System.Windows.Forms.ImeMode.NoControl;
            this.label1.Location  = new System.Drawing.Point(188, 12);
            this.label1.Name      = "label1";
            this.label1.Size      = new System.Drawing.Size(203, 16);
            this.label1.TabIndex  = 0;
            this.label1.Text      = "Find &address:";
            //
            // textBoxAddress
            //
            this.textBoxAddress.AcceptsReturn = true;
            this.textBoxAddress.Anchor        =
                ((System.Windows.Forms.AnchorStyles)
                     (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                       | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxAddress.Location = new System.Drawing.Point(188, 28);
            this.textBoxAddress.Name     = "textBoxAddress";
            this.textBoxAddress.Size     = new System.Drawing.Size(390, 21);
            this.textBoxAddress.TabIndex = 1;
            this.textBoxAddress.Text     = "";
            this.textBoxAddress.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxAddress_KeyDown);
            //
            // mapControl
            //
            this.mapControl.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.mapControl.AutoHeight      = false;
            this.mapControl.BottomInset     = 0;
            this.mapControl.Control         = null;
            this.mapControl.DockPadding.All = 1;
            this.mapControl.LeftInset       = 0;
            this.mapControl.Location        = new System.Drawing.Point(188, 56);
            this.mapControl.Name            = "mapControl";
            this.mapControl.RightInset      = 0;
            this.mapControl.Size            = new System.Drawing.Size(420, 378);
            this.mapControl.TabIndex        = 1;
            this.mapControl.TabStop         = false;
            this.mapControl.ThemeBorder     = false;
            this.mapControl.TopInset        = 0;
            //
            // buttonOK
            //
            this.buttonOK.Anchor =
                ((System.Windows.Forms.AnchorStyles)
                     ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.buttonOK.FlatStyle    = System.Windows.Forms.FlatStyle.System;
            this.buttonOK.ImeMode      = System.Windows.Forms.ImeMode.NoControl;
            this.buttonOK.Location     = new System.Drawing.Point(456, 441);
            this.buttonOK.Name         = "buttonInsert";
            this.buttonOK.TabIndex     = 4;
            this.buttonOK.Text         = "&Insert";
            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(534, 441);
            this.buttonCancel.Name         = "buttonCancel";
            this.buttonCancel.TabIndex     = 5;
            this.buttonCancel.Text         = "Cancel";
            //
            // buttonGotoBirdseye
            //
            this.buttonGotoBirdseye.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonGotoBirdseye.AutoSizeHeight = true;
            this.buttonGotoBirdseye.AutoSizeWidth  = false;
            this.buttonGotoBirdseye.BackColor      = System.Drawing.Color.Transparent;

            this.buttonGotoBirdseye.BitmapDisabled = null;
            this.buttonGotoBirdseye.BitmapEnabled  =
                ResourceHelper.LoadAssemblyResourceBitmap("Images.GoBirdsEyeEnabled.png", true);
            this.buttonGotoBirdseye.BitmapPushed =
                ResourceHelper.LoadAssemblyResourceBitmap("Images.GoBirdsEyePressed.png", true);
            this.buttonGotoBirdseye.BitmapSelected =
                ResourceHelper.LoadAssemblyResourceBitmap("Images.GoBirdsEyeSelected.png", true);
            this.buttonGotoBirdseye.ButtonStyle = OpenLiveWriter.Controls.ButtonStyle.Bitmap;
            this.buttonGotoBirdseye.Location    = new System.Drawing.Point(5, 64);
            this.buttonGotoBirdseye.Name        = "buttonGotoBirdseye";
            this.buttonGotoBirdseye.Size        = new System.Drawing.Size(170, 60);
            this.buttonGotoBirdseye.TabIndex    = 5;
            this.buttonGotoBirdseye.Text        = "&Birdseye";
            this.buttonGotoBirdseye.ToolTip     = "";
            this.buttonGotoBirdseye.Visible     = false;
            this.buttonGotoBirdseye.Click      += new System.EventHandler(this.buttonGotoBirdseye_Click);
            //
            // trackBarZoom
            //
            this.trackBarZoom.ImeMode       = System.Windows.Forms.ImeMode.NoControl;
            this.trackBarZoom.LargeChange   = 3;
            this.trackBarZoom.Location      = new System.Drawing.Point(70, 3);
            this.trackBarZoom.Maximum       = 19;
            this.trackBarZoom.Minimum       = 1;
            this.trackBarZoom.Name          = "trackBarZoom";
            this.trackBarZoom.Size          = new System.Drawing.Size(99, 18);
            this.trackBarZoom.TabIndex      = 2;
            this.trackBarZoom.TickFrequency = 5;
            this.trackBarZoom.TickStyle     = System.Windows.Forms.TickStyle.None;
            this.trackBarZoom.Value         = 1;
            this.trackBarZoom.MouseUp      += new System.Windows.Forms.MouseEventHandler(this.trackBarZoom_MouseUp);
            this.trackBarZoom.ValueChanged += new System.EventHandler(this.trackBarZoom_ValueChanged);
            this.trackBarZoom.MouseDown    += new System.Windows.Forms.MouseEventHandler(this.trackBarZoom_MouseDown);
            //
            // comboBoxStyle
            //
            this.comboBoxStyle.DrawMode      = System.Windows.Forms.DrawMode.OwnerDrawFixed;
            this.comboBoxStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboBoxStyle.ItemHeight    = 21;
            this.comboBoxStyle.Location      = new System.Drawing.Point(6, 56);
            this.comboBoxStyle.Name          = "comboBoxStyle";
            this.comboBoxStyle.Size          = new System.Drawing.Size(175, 27);
            this.comboBoxStyle.TabIndex      = 1;
            //
            // mapScrollControl
            //
            this.mapScrollControl.Location = new System.Drawing.Point(0, 0);
            this.mapScrollControl.Name     = "mapScrollControl";
            this.mapScrollControl.Size     = new System.Drawing.Size(56, 56);
            this.mapScrollControl.TabIndex = 0;
            //
            // cbShowLabels
            //
            this.cbShowLabels.CheckAlign      = System.Drawing.ContentAlignment.TopLeft;
            this.cbShowLabels.FlatStyle       = System.Windows.Forms.FlatStyle.System;
            this.cbShowLabels.ImeMode         = System.Windows.Forms.ImeMode.NoControl;
            this.cbShowLabels.Location        = new System.Drawing.Point(78, 27);
            this.cbShowLabels.Name            = "cbShowLabels";
            this.cbShowLabels.Size            = new System.Drawing.Size(92, 31);
            this.cbShowLabels.TabIndex        = 4;
            this.cbShowLabels.Text            = "Show &labels";
            this.cbShowLabels.TextAlign       = System.Drawing.ContentAlignment.TopLeft;
            this.cbShowLabels.CheckedChanged += new System.EventHandler(this.cbShowLabels_CheckedChanged);
            //
            // panelNormal
            //
            this.panelNormal.Controls.Add(this.mapZoomPlusButton);
            this.panelNormal.Controls.Add(this.buttonZoomMinus);
            this.panelNormal.Controls.Add(this.mapScrollControl);
            this.panelNormal.Controls.Add(this.cbShowLabels);
            this.panelNormal.Controls.Add(this.trackBarZoom);
            this.panelNormal.Controls.Add(this.buttonGotoBirdseye);
            this.panelNormal.Location = new System.Drawing.Point(6, 90);
            this.panelNormal.Name     = "panelNormal";
            this.panelNormal.Size     = new System.Drawing.Size(176, 132);
            this.panelNormal.TabIndex = 2;
            //
            // mapZoomPlusButton
            //
            this.mapZoomPlusButton.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.mapZoomPlusButton.AutoSizeHeight = true;
            this.mapZoomPlusButton.AutoSizeWidth  = true;
            this.mapZoomPlusButton.BackColor      = System.Drawing.Color.Transparent;
            this.mapZoomPlusButton.BitmapDisabled =
                ((System.Drawing.Bitmap)(resources.GetObject("mapZoomPlusButton.BitmapDisabled")));
            this.mapZoomPlusButton.BitmapEnabled =
                ((System.Drawing.Bitmap)(resources.GetObject("mapZoomPlusButton.BitmapEnabled")));
            this.mapZoomPlusButton.BitmapPushed =
                ((System.Drawing.Bitmap)(resources.GetObject("mapZoomPlusButton.BitmapPushed")));
            this.mapZoomPlusButton.BitmapSelected =
                ((System.Drawing.Bitmap)(resources.GetObject("mapZoomPlusButton.BitmapSelected")));
            this.mapZoomPlusButton.ButtonStyle = OpenLiveWriter.Controls.ButtonStyle.Bitmap;
            this.mapZoomPlusButton.Location    = new System.Drawing.Point(162, 8);
            this.mapZoomPlusButton.Name        = "mapZoomPlusButton";
            this.mapZoomPlusButton.Size        = new System.Drawing.Size(12, 12);
            this.mapZoomPlusButton.TabIndex    = 3;
            this.mapZoomPlusButton.Text        = "button1";
            this.mapZoomPlusButton.ToolTip     = "";
            this.mapZoomPlusButton.Click      += new System.EventHandler(this.mapZoomPlusButton_Click);
            //
            // buttonZoomMinus
            //
            this.buttonZoomMinus.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonZoomMinus.AutoSizeHeight = true;
            this.buttonZoomMinus.AutoSizeWidth  = true;
            this.buttonZoomMinus.BackColor      = System.Drawing.Color.Transparent;
            this.buttonZoomMinus.BitmapDisabled =
                ((System.Drawing.Bitmap)(resources.GetObject("buttonZoomMinus.BitmapDisabled")));
            this.buttonZoomMinus.BitmapEnabled  = ((System.Drawing.Bitmap)(resources.GetObject("buttonZoomMinus.BitmapEnabled")));
            this.buttonZoomMinus.BitmapPushed   = ((System.Drawing.Bitmap)(resources.GetObject("buttonZoomMinus.BitmapPushed")));
            this.buttonZoomMinus.BitmapSelected =
                ((System.Drawing.Bitmap)(resources.GetObject("buttonZoomMinus.BitmapSelected")));
            this.buttonZoomMinus.ButtonStyle = OpenLiveWriter.Controls.ButtonStyle.Bitmap;
            this.buttonZoomMinus.Location    = new System.Drawing.Point(64, 9);
            this.buttonZoomMinus.Name        = "buttonZoomMinus";
            this.buttonZoomMinus.Size        = new System.Drawing.Size(12, 12);
            this.buttonZoomMinus.TabIndex    = 1;
            this.buttonZoomMinus.Text        = "button1";
            this.buttonZoomMinus.ToolTip     = "";
            this.buttonZoomMinus.Click      += new System.EventHandler(this.buttonZoomMinus_Click);
            //
            // panelBirdseye
            //
            this.panelBirdseye.Controls.Add(this.mapBirdsEyeDirectionControl);
            this.panelBirdseye.Controls.Add(this.mapBirdsEyeZoomControl);
            this.panelBirdseye.Location = new System.Drawing.Point(7, 224);
            this.panelBirdseye.Name     = "panelBirdseye";
            this.panelBirdseye.Size     = new System.Drawing.Size(176, 247);
            this.panelBirdseye.TabIndex = 3;
            this.panelBirdseye.Visible  = false;
            //
            // mapBirdsEyeDirectionControl
            //
            this.mapBirdsEyeDirectionControl.Location = new System.Drawing.Point(0, 0);
            this.mapBirdsEyeDirectionControl.Name     = "mapBirdsEyeDirectionControl";
            this.mapBirdsEyeDirectionControl.Size     = new System.Drawing.Size(62, 57);
            this.mapBirdsEyeDirectionControl.TabIndex = 0;
            //
            // mapBirdsEyeZoomControl
            //
            this.mapBirdsEyeZoomControl.Location  = new System.Drawing.Point(66, 0);
            this.mapBirdsEyeZoomControl.Name      = "mapBirdsEyeZoomControl";
            this.mapBirdsEyeZoomControl.Size      = new System.Drawing.Size(109, 61);
            this.mapBirdsEyeZoomControl.TabIndex  = 1;
            this.mapBirdsEyeZoomControl.TabStop   = false;
            this.mapBirdsEyeZoomControl.ZoomLevel = OpenLiveWriter.InternalWriterPlugin.Controls.BirdsEyeZoomLevel.Small;
            //
            // mapTipControl
            //
            this.mapTipControl.Anchor =
                ((System.Windows.Forms.AnchorStyles)
                     (((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                       | System.Windows.Forms.AnchorStyles.Right)));
            this.mapTipControl.Location  = new System.Drawing.Point(188, 441);
            this.mapTipControl.Name      = "mapTipControl";
            this.mapTipControl.Size      = new System.Drawing.Size(256, 30);
            this.mapTipControl.TabIndex  = 10;
            this.mapTipControl.TabStop   = false;
            this.mapTipControl.ForeColor = SystemColors.ControlDarkDark;
            this.mapTipControl.Text      = "Tip: Right-click to add a pushpin";
            //
            // MapForm
            //
            this.AcceptButton      = this.buttonOK;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
            this.CancelButton      = this.buttonCancel;
            this.ClientSize        = new System.Drawing.Size(618, 474);
            this.Controls.Add(this.mapTipControl);
            this.Controls.Add(this.panelBirdseye);
            this.Controls.Add(this.panelNormal);
            this.Controls.Add(this.buttonCancel);
            this.Controls.Add(this.buttonOK);
            this.Controls.Add(this.mapControl);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.comboBoxStyle);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
            this.Location        = new System.Drawing.Point(0, 0);
            this.MaximizeBox     = false;
            this.MinimizeBox     = false;
            this.MinimumSize     = new System.Drawing.Size(554, 453);
            this.Name            = "MapForm";
            this.Text            = "Insert Map";
            this.Resize         += new System.EventHandler(this.MapForm_Resize);
            this.panel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.trackBarZoom)).EndInit();
            this.panelNormal.ResumeLayout(false);
            this.panelBirdseye.ResumeLayout(false);
            this.ResumeLayout(false);
        }
예제 #2
0
 internal PushpinContextMenuHandler(MapForm parentFrame, MapControl mapControl, MapOptions mapOptions,
                                    MapContextMenuEvent e, string pushpinId)
 {
     _mapForm = parentFrame;
     _mapControl = mapControl;
     _mapOptions = mapOptions;
     _event = e;
     _pushpinId = pushpinId;
 }
예제 #3
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MapForm));
            this.panel1 = new System.Windows.Forms.Panel();
            this.buttonSearch = new OpenLiveWriter.InternalWriterPlugin.Controls.MapSearchButton();
            this.mapLogoControl = new OpenLiveWriter.InternalWriterPlugin.Controls.MapLogoControl();
            this.label1 = new System.Windows.Forms.Label();
            this.textBoxAddress = new System.Windows.Forms.TextBox();
            this.mapControl = new OpenLiveWriter.InternalWriterPlugin.MapControl();
            this.buttonOK = new System.Windows.Forms.Button();
            this.buttonCancel = new System.Windows.Forms.Button();
            this.buttonGotoBirdseye = new OpenLiveWriter.InternalWriterPlugin.Controls.MapBirdsEyeButton();
            this.trackBarZoom = new System.Windows.Forms.TrackBar();
            this.comboBoxStyle = new OpenLiveWriter.InternalWriterPlugin.Controls.MapViewComboBox();
            this.mapScrollControl = new OpenLiveWriter.InternalWriterPlugin.Controls.MapScrollControl();
            this.cbShowLabels = new System.Windows.Forms.CheckBox();
            this.panelNormal = new System.Windows.Forms.Panel();
            this.mapZoomPlusButton = new OpenLiveWriter.InternalWriterPlugin.Controls.MapZoomPlusButton();
            this.buttonZoomMinus = new OpenLiveWriter.InternalWriterPlugin.Controls.MapZoomMinusButton();
            this.panelBirdseye = new System.Windows.Forms.Panel();
            this.mapBirdsEyeDirectionControl = new OpenLiveWriter.InternalWriterPlugin.Controls.MapBirdsEyeDirectionControl();
            this.mapBirdsEyeZoomControl = new OpenLiveWriter.InternalWriterPlugin.Controls.MapBirdsEyeZoomControl();
            this.mapTipControl = new Label();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.trackBarZoom)).BeginInit();
            this.panelNormal.SuspendLayout();
            this.panelBirdseye.SuspendLayout();
            this.SuspendLayout();
            //
            // panel1
            //
            this.panel1.Anchor =
                ((System.Windows.Forms.AnchorStyles)
                 (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                   | System.Windows.Forms.AnchorStyles.Right)));
            this.panel1.BackColor = System.Drawing.SystemColors.Control;
            this.panel1.Controls.Add(this.buttonSearch);
            this.panel1.Controls.Add(this.mapLogoControl);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.textBoxAddress);
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(642, 52);
            this.panel1.TabIndex = 0;
            //
            // buttonSearch
            //
            this.buttonSearch.Anchor =
                ((System.Windows.Forms.AnchorStyles)
                 ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonSearch.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.buttonSearch.Location = new System.Drawing.Point(584, 27);
            this.buttonSearch.Name = "buttonSearch";
            this.buttonSearch.Size = new System.Drawing.Size(24, 24);
            this.buttonSearch.TabIndex = 2;
            this.buttonSearch.Click += new System.EventHandler(this.buttonSearch_Click);
            //
            // mapLogoControl
            //
            this.mapLogoControl.Location = new System.Drawing.Point(0, 2);
            this.mapLogoControl.Name = "mapLogoControl";
            this.mapLogoControl.Size = new System.Drawing.Size(184, 51);
            this.mapLogoControl.TabIndex = 3;
            this.mapLogoControl.TabStop = false;
            //
            // label1
            //
            this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.label1.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.label1.Location = new System.Drawing.Point(188, 12);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(203, 16);
            this.label1.TabIndex = 0;
            this.label1.Text = "Find &address:";
            //
            // textBoxAddress
            //
            this.textBoxAddress.AcceptsReturn = true;
            this.textBoxAddress.Anchor =
                ((System.Windows.Forms.AnchorStyles)
                 (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                   | System.Windows.Forms.AnchorStyles.Right)));
            this.textBoxAddress.Location = new System.Drawing.Point(188, 28);
            this.textBoxAddress.Name = "textBoxAddress";
            this.textBoxAddress.Size = new System.Drawing.Size(390, 21);
            this.textBoxAddress.TabIndex = 1;
            this.textBoxAddress.Text = "";
            this.textBoxAddress.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxAddress_KeyDown);
            //
            // mapControl
            //
            this.mapControl.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.mapControl.AutoHeight = false;
            this.mapControl.BottomInset = 0;
            this.mapControl.Control = null;
            this.mapControl.DockPadding.All = 1;
            this.mapControl.LeftInset = 0;
            this.mapControl.Location = new System.Drawing.Point(188, 56);
            this.mapControl.Name = "mapControl";
            this.mapControl.RightInset = 0;
            this.mapControl.Size = new System.Drawing.Size(420, 378);
            this.mapControl.TabIndex = 1;
            this.mapControl.TabStop = false;
            this.mapControl.ThemeBorder = false;
            this.mapControl.TopInset = 0;
            //
            // buttonOK
            //
            this.buttonOK.Anchor =
                ((System.Windows.Forms.AnchorStyles)
                 ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.buttonOK.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.buttonOK.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.buttonOK.Location = new System.Drawing.Point(456, 441);
            this.buttonOK.Name = "buttonInsert";
            this.buttonOK.TabIndex = 4;
            this.buttonOK.Text = "&Insert";
            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(534, 441);
            this.buttonCancel.Name = "buttonCancel";
            this.buttonCancel.TabIndex = 5;
            this.buttonCancel.Text = "Cancel";
            //
            // buttonGotoBirdseye
            //
            this.buttonGotoBirdseye.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonGotoBirdseye.AutoSizeHeight = true;
            this.buttonGotoBirdseye.AutoSizeWidth = false;
            this.buttonGotoBirdseye.BackColor = System.Drawing.Color.Transparent;

            this.buttonGotoBirdseye.BitmapDisabled = null;
            this.buttonGotoBirdseye.BitmapEnabled =
                ResourceHelper.LoadAssemblyResourceBitmap("Images.GoBirdsEyeEnabled.png", true);
            this.buttonGotoBirdseye.BitmapPushed =
                ResourceHelper.LoadAssemblyResourceBitmap("Images.GoBirdsEyePressed.png", true);
            this.buttonGotoBirdseye.BitmapSelected =
                ResourceHelper.LoadAssemblyResourceBitmap("Images.GoBirdsEyeSelected.png", true);
            this.buttonGotoBirdseye.ButtonStyle = OpenLiveWriter.Controls.ButtonStyle.Bitmap;
            this.buttonGotoBirdseye.Location = new System.Drawing.Point(5, 64);
            this.buttonGotoBirdseye.Name = "buttonGotoBirdseye";
            this.buttonGotoBirdseye.Size = new System.Drawing.Size(170, 60);
            this.buttonGotoBirdseye.TabIndex = 5;
            this.buttonGotoBirdseye.Text = "&Birdseye";
            this.buttonGotoBirdseye.ToolTip = "";
            this.buttonGotoBirdseye.Visible = false;
            this.buttonGotoBirdseye.Click += new System.EventHandler(this.buttonGotoBirdseye_Click);
            //
            // trackBarZoom
            //
            this.trackBarZoom.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.trackBarZoom.LargeChange = 3;
            this.trackBarZoom.Location = new System.Drawing.Point(70, 3);
            this.trackBarZoom.Maximum = 19;
            this.trackBarZoom.Minimum = 1;
            this.trackBarZoom.Name = "trackBarZoom";
            this.trackBarZoom.Size = new System.Drawing.Size(99, 18);
            this.trackBarZoom.TabIndex = 2;
            this.trackBarZoom.TickFrequency = 5;
            this.trackBarZoom.TickStyle = System.Windows.Forms.TickStyle.None;
            this.trackBarZoom.Value = 1;
            this.trackBarZoom.MouseUp += new System.Windows.Forms.MouseEventHandler(this.trackBarZoom_MouseUp);
            this.trackBarZoom.ValueChanged += new System.EventHandler(this.trackBarZoom_ValueChanged);
            this.trackBarZoom.MouseDown += new System.Windows.Forms.MouseEventHandler(this.trackBarZoom_MouseDown);
            //
            // comboBoxStyle
            //
            this.comboBoxStyle.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
            this.comboBoxStyle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
            this.comboBoxStyle.ItemHeight = 21;
            this.comboBoxStyle.Location = new System.Drawing.Point(6, 56);
            this.comboBoxStyle.Name = "comboBoxStyle";
            this.comboBoxStyle.Size = new System.Drawing.Size(175, 27);
            this.comboBoxStyle.TabIndex = 1;
            //
            // mapScrollControl
            //
            this.mapScrollControl.Location = new System.Drawing.Point(0, 0);
            this.mapScrollControl.Name = "mapScrollControl";
            this.mapScrollControl.Size = new System.Drawing.Size(56, 56);
            this.mapScrollControl.TabIndex = 0;
            //
            // cbShowLabels
            //
            this.cbShowLabels.CheckAlign = System.Drawing.ContentAlignment.TopLeft;
            this.cbShowLabels.FlatStyle = System.Windows.Forms.FlatStyle.System;
            this.cbShowLabels.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.cbShowLabels.Location = new System.Drawing.Point(78, 27);
            this.cbShowLabels.Name = "cbShowLabels";
            this.cbShowLabels.Size = new System.Drawing.Size(92, 31);
            this.cbShowLabels.TabIndex = 4;
            this.cbShowLabels.Text = "Show &labels";
            this.cbShowLabels.TextAlign = System.Drawing.ContentAlignment.TopLeft;
            this.cbShowLabels.CheckedChanged += new System.EventHandler(this.cbShowLabels_CheckedChanged);
            //
            // panelNormal
            //
            this.panelNormal.Controls.Add(this.mapZoomPlusButton);
            this.panelNormal.Controls.Add(this.buttonZoomMinus);
            this.panelNormal.Controls.Add(this.mapScrollControl);
            this.panelNormal.Controls.Add(this.cbShowLabels);
            this.panelNormal.Controls.Add(this.trackBarZoom);
            this.panelNormal.Controls.Add(this.buttonGotoBirdseye);
            this.panelNormal.Location = new System.Drawing.Point(6, 90);
            this.panelNormal.Name = "panelNormal";
            this.panelNormal.Size = new System.Drawing.Size(176, 132);
            this.panelNormal.TabIndex = 2;
            //
            // mapZoomPlusButton
            //
            this.mapZoomPlusButton.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.mapZoomPlusButton.AutoSizeHeight = true;
            this.mapZoomPlusButton.AutoSizeWidth = true;
            this.mapZoomPlusButton.BackColor = System.Drawing.Color.Transparent;
            this.mapZoomPlusButton.BitmapDisabled =
                ((System.Drawing.Bitmap)(resources.GetObject("mapZoomPlusButton.BitmapDisabled")));
            this.mapZoomPlusButton.BitmapEnabled =
                ((System.Drawing.Bitmap)(resources.GetObject("mapZoomPlusButton.BitmapEnabled")));
            this.mapZoomPlusButton.BitmapPushed =
                ((System.Drawing.Bitmap)(resources.GetObject("mapZoomPlusButton.BitmapPushed")));
            this.mapZoomPlusButton.BitmapSelected =
                ((System.Drawing.Bitmap)(resources.GetObject("mapZoomPlusButton.BitmapSelected")));
            this.mapZoomPlusButton.ButtonStyle = OpenLiveWriter.Controls.ButtonStyle.Bitmap;
            this.mapZoomPlusButton.Location = new System.Drawing.Point(162, 8);
            this.mapZoomPlusButton.Name = "mapZoomPlusButton";
            this.mapZoomPlusButton.Size = new System.Drawing.Size(12, 12);
            this.mapZoomPlusButton.TabIndex = 3;
            this.mapZoomPlusButton.Text = "button1";
            this.mapZoomPlusButton.ToolTip = "";
            this.mapZoomPlusButton.Click += new System.EventHandler(this.mapZoomPlusButton_Click);
            //
            // buttonZoomMinus
            //
            this.buttonZoomMinus.AccessibleRole = System.Windows.Forms.AccessibleRole.PushButton;
            this.buttonZoomMinus.AutoSizeHeight = true;
            this.buttonZoomMinus.AutoSizeWidth = true;
            this.buttonZoomMinus.BackColor = System.Drawing.Color.Transparent;
            this.buttonZoomMinus.BitmapDisabled =
                ((System.Drawing.Bitmap)(resources.GetObject("buttonZoomMinus.BitmapDisabled")));
            this.buttonZoomMinus.BitmapEnabled = ((System.Drawing.Bitmap)(resources.GetObject("buttonZoomMinus.BitmapEnabled")));
            this.buttonZoomMinus.BitmapPushed = ((System.Drawing.Bitmap)(resources.GetObject("buttonZoomMinus.BitmapPushed")));
            this.buttonZoomMinus.BitmapSelected =
                ((System.Drawing.Bitmap)(resources.GetObject("buttonZoomMinus.BitmapSelected")));
            this.buttonZoomMinus.ButtonStyle = OpenLiveWriter.Controls.ButtonStyle.Bitmap;
            this.buttonZoomMinus.Location = new System.Drawing.Point(64, 9);
            this.buttonZoomMinus.Name = "buttonZoomMinus";
            this.buttonZoomMinus.Size = new System.Drawing.Size(12, 12);
            this.buttonZoomMinus.TabIndex = 1;
            this.buttonZoomMinus.Text = "button1";
            this.buttonZoomMinus.ToolTip = "";
            this.buttonZoomMinus.Click += new System.EventHandler(this.buttonZoomMinus_Click);
            //
            // panelBirdseye
            //
            this.panelBirdseye.Controls.Add(this.mapBirdsEyeDirectionControl);
            this.panelBirdseye.Controls.Add(this.mapBirdsEyeZoomControl);
            this.panelBirdseye.Location = new System.Drawing.Point(7, 224);
            this.panelBirdseye.Name = "panelBirdseye";
            this.panelBirdseye.Size = new System.Drawing.Size(176, 247);
            this.panelBirdseye.TabIndex = 3;
            this.panelBirdseye.Visible = false;
            //
            // mapBirdsEyeDirectionControl
            //
            this.mapBirdsEyeDirectionControl.Location = new System.Drawing.Point(0, 0);
            this.mapBirdsEyeDirectionControl.Name = "mapBirdsEyeDirectionControl";
            this.mapBirdsEyeDirectionControl.Size = new System.Drawing.Size(62, 57);
            this.mapBirdsEyeDirectionControl.TabIndex = 0;
            //
            // mapBirdsEyeZoomControl
            //
            this.mapBirdsEyeZoomControl.Location = new System.Drawing.Point(66, 0);
            this.mapBirdsEyeZoomControl.Name = "mapBirdsEyeZoomControl";
            this.mapBirdsEyeZoomControl.Size = new System.Drawing.Size(109, 61);
            this.mapBirdsEyeZoomControl.TabIndex = 1;
            this.mapBirdsEyeZoomControl.TabStop = false;
            this.mapBirdsEyeZoomControl.ZoomLevel = OpenLiveWriter.InternalWriterPlugin.Controls.BirdsEyeZoomLevel.Small;
            //
            // mapTipControl
            //
            this.mapTipControl.Anchor =
                ((System.Windows.Forms.AnchorStyles)
                 (((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                   | System.Windows.Forms.AnchorStyles.Right)));
            this.mapTipControl.Location = new System.Drawing.Point(188, 441);
            this.mapTipControl.Name = "mapTipControl";
            this.mapTipControl.Size = new System.Drawing.Size(256, 30);
            this.mapTipControl.TabIndex = 10;
            this.mapTipControl.TabStop = false;
            this.mapTipControl.ForeColor = SystemColors.ControlDarkDark;
            this.mapTipControl.Text = "Tip: Right-click to add a pushpin";
            //
            // MapForm
            //
            this.AcceptButton = this.buttonOK;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
            this.CancelButton = this.buttonCancel;
            this.ClientSize = new System.Drawing.Size(618, 474);
            this.Controls.Add(this.mapTipControl);
            this.Controls.Add(this.panelBirdseye);
            this.Controls.Add(this.panelNormal);
            this.Controls.Add(this.buttonCancel);
            this.Controls.Add(this.buttonOK);
            this.Controls.Add(this.mapControl);
            this.Controls.Add(this.panel1);
            this.Controls.Add(this.comboBoxStyle);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
            this.Location = new System.Drawing.Point(0, 0);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.MinimumSize = new System.Drawing.Size(554, 453);
            this.Name = "MapForm";
            this.Text = "Insert Map";
            this.Resize += new System.EventHandler(this.MapForm_Resize);
            this.panel1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.trackBarZoom)).EndInit();
            this.panelNormal.ResumeLayout(false);
            this.panelBirdseye.ResumeLayout(false);
            this.ResumeLayout(false);
        }
예제 #4
0
 internal ContextMenuHandler(MapForm parentFrame, MapControl mapControl, MapOptions mapOptions, MapContextMenuEvent e)
 {
     _mapForm = parentFrame;
     _mapControl = mapControl;
     _mapOptions = mapOptions;
     _event = e;
 }
예제 #5
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (mapControl != null)
         {
             mapControl.MapStyleChanged -= new EventHandler(mapControl_MapStyleChanged);
             mapControl.ZoomLevelChanged -= new EventHandler(mapControl_ZoomLevelChanged);
             mapControl.BirdseyeChanged -= new EventHandler(mapControl_BirdseyeChanged);
             mapControl.ShowMapContextMenu -= new MapContextMenuHandler(mapControl_ShowMapContextMenu);
             mapControl.ShowPushpinContextMenu -= new MapPushpinContextMenuHandler(mapControl_ShowPushpinContextMenu);
             mapControl = null;
         }
         if (components != null)
         {
             components.Dispose();
         }
     }
     base.Dispose(disposing);
 }