Ejemplo n.º 1
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraMap.ImageLayer imageTilesLayer1 = new DevExpress.XtraMap.ImageLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     this.mapControl1 = new DevExpress.XtraMap.MapControl();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     this.SuspendLayout();
     //
     // mapControl1
     //
     this.mapControl1.CenterPoint  = new DevExpress.XtraMap.GeoPoint(50D, 20D);
     this.mapControl1.Dock         = System.Windows.Forms.DockStyle.Fill;
     imageTilesLayer1.DataProvider = openStreetMapDataProvider1;
     this.mapControl1.Layers.Add(imageTilesLayer1);
     this.mapControl1.Location  = new System.Drawing.Point(0, 0);
     this.mapControl1.Name      = "mapControl1";
     this.mapControl1.Size      = new System.Drawing.Size(784, 561);
     this.mapControl1.TabIndex  = 0;
     this.mapControl1.ZoomLevel = 4D;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(784, 561);
     this.Controls.Add(this.mapControl1);
     this.Name  = "Form1";
     this.Text  = "Form1";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraMap.ImageLayer imageLayer1 = new DevExpress.XtraMap.ImageLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     DevExpress.XtraMap.InformationLayer          informationLayer1          = new DevExpress.XtraMap.InformationLayer();
     this.mapControl1 = new DevExpress.XtraMap.MapControl();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     this.SuspendLayout();
     //
     // mapControl1
     //
     this.mapControl1.Dock    = System.Windows.Forms.DockStyle.Fill;
     imageLayer1.DataProvider = openStreetMapDataProvider1;
     this.mapControl1.Layers.Add(imageLayer1);
     this.mapControl1.Layers.Add(informationLayer1);
     this.mapControl1.Location = new System.Drawing.Point(0, 0);
     this.mapControl1.Name     = "mapControl1";
     this.mapControl1.Size     = new System.Drawing.Size(545, 443);
     this.mapControl1.TabIndex = 0;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(545, 443);
     this.Controls.Add(this.mapControl1);
     this.Name = "Form1";
     this.Text = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraMap.ImageLayer imageTilesLayer1 = new DevExpress.XtraMap.ImageLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     this.mapControl1  = new DevExpress.XtraMap.MapControl();
     this.progressBar1 = new System.Windows.Forms.ProgressBar();
     this.label1       = new System.Windows.Forms.Label();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     this.SuspendLayout();
     //
     // mapControl1
     //
     this.mapControl1.CenterPoint  = new DevExpress.XtraMap.GeoPoint(55D, 25D);
     this.mapControl1.Dock         = System.Windows.Forms.DockStyle.Fill;
     imageTilesLayer1.DataProvider = openStreetMapDataProvider1;
     this.mapControl1.Layers.Add(imageTilesLayer1);
     this.mapControl1.Location  = new System.Drawing.Point(0, 0);
     this.mapControl1.Name      = "mapControl1";
     this.mapControl1.Size      = new System.Drawing.Size(906, 520);
     this.mapControl1.TabIndex  = 0;
     this.mapControl1.ZoomLevel = 6D;
     //
     // progressBar1
     //
     this.progressBar1.Location = new System.Drawing.Point(12, 12);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(146, 23);
     this.progressBar1.TabIndex = 1;
     this.progressBar1.Visible  = false;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(41, 40);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(80, 13);
     this.label1.TabIndex = 2;
     this.label1.Text     = "Loading Data...";
     this.label1.Visible  = false;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(906, 520);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.mapControl1);
     this.Name = "Form1";
     this.Text = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 4
0
 /// <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();
     DevExpress.XtraMap.ImageLayer imageLayer1 = new DevExpress.XtraMap.ImageLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     DevExpress.XtraMap.InformationLayer          informationLayer1          = new DevExpress.XtraMap.InformationLayer();
     DevExpress.XtraMap.BingRouteDataProvider     bingRouteDataProvider1     = new DevExpress.XtraMap.BingRouteDataProvider();
     this.mapControl          = new DevExpress.XtraMap.MapControl();
     this.splashScreenManager = new DevExpress.XtraSplashScreen.SplashScreenManager(this, typeof(global::ZoomToFitOnRouteCalculated.WaitForm1), true, true);
     this.defaultLookAndFeel  = new DevExpress.LookAndFeel.DefaultLookAndFeel(this.components);
     ((System.ComponentModel.ISupportInitialize)(this.mapControl)).BeginInit();
     this.SuspendLayout();
     //
     // mapControl
     //
     this.mapControl.Dock                    = System.Windows.Forms.DockStyle.Fill;
     imageLayer1.DataProvider                = openStreetMapDataProvider1;
     bingRouteDataProvider1.BingKey          = "INSERT_YOUR_BING_KEY";
     informationLayer1.DataProvider          = bingRouteDataProvider1;
     informationLayer1.ItemStyle.Stroke      = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(114)))), ((int)(((byte)(194)))));
     informationLayer1.ItemStyle.StrokeWidth = 4;
     this.mapControl.Layers.Add(imageLayer1);
     this.mapControl.Layers.Add(informationLayer1);
     this.mapControl.Location = new System.Drawing.Point(0, 0);
     this.mapControl.Name     = "mapControl";
     this.mapControl.Size     = new System.Drawing.Size(570, 442);
     this.mapControl.TabIndex = 0;
     //
     // splashScreenManager
     //
     this.splashScreenManager.ClosingDelay = 500;
     //
     // defaultLookAndFeel
     //
     this.defaultLookAndFeel.LookAndFeel.SkinName = "Office 2016 Colorful";
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(570, 442);
     this.Controls.Add(this.mapControl);
     this.Name          = "Form1";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "Form1";
     this.Load         += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.mapControl)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraMap.ImageTilesLayer           imageTilesLayer1           = new DevExpress.XtraMap.ImageTilesLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     DevExpress.XtraMap.VectorItemsLayer          vectorItemsLayer1          = new DevExpress.XtraMap.VectorItemsLayer();
     DevExpress.XtraMap.MapItemStorage            mapItemStorage1            = new DevExpress.XtraMap.MapItemStorage();
     DevExpress.XtraMap.MapPolygon mapPolygon1 = new DevExpress.XtraMap.MapPolygon();
     this.mapControl1 = new DevExpress.XtraMap.MapControl();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     this.SuspendLayout();
     //
     // mapControl1
     //
     this.mapControl1.Dock         = System.Windows.Forms.DockStyle.Fill;
     imageTilesLayer1.DataProvider = openStreetMapDataProvider1;
     mapPolygon1.HighlightedFill   = System.Drawing.Color.Red;
     mapPolygon1.Points.Add(new DevExpress.XtraMap.GeoPoint(0D, 0D));
     mapPolygon1.Points.Add(new DevExpress.XtraMap.GeoPoint(90D, 0D));
     mapPolygon1.Points.Add(new DevExpress.XtraMap.GeoPoint(0D, 180D));
     mapItemStorage1.Items.Add(mapPolygon1);
     vectorItemsLayer1.Data = mapItemStorage1;
     this.mapControl1.Layers.Add(imageTilesLayer1);
     this.mapControl1.Layers.Add(vectorItemsLayer1);
     this.mapControl1.Location = new System.Drawing.Point(0, 0);
     this.mapControl1.Name     = "mapControl1";
     this.mapControl1.Size     = new System.Drawing.Size(946, 752);
     this.mapControl1.TabIndex = 0;
     this.mapControl1.MouseUp += new System.Windows.Forms.MouseEventHandler(this.mapControl1_MouseUp);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(946, 752);
     this.Controls.Add(this.mapControl1);
     this.Name = "Form1";
     this.Text = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraMap.ImageLayer imageTilesLayer1 = new DevExpress.XtraMap.ImageLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     DevExpress.XtraMap.VectorItemsLayer          vectorItemsLayer1          = new DevExpress.XtraMap.VectorItemsLayer();
     DevExpress.XtraMap.KeyColorColorizer         keyColorColorizer1         = new DevExpress.XtraMap.KeyColorColorizer();
     DevExpress.XtraMap.ArgumentItemKeyProvider   argumentItemKeyProvider1   = new DevExpress.XtraMap.ArgumentItemKeyProvider();
     DevExpress.XtraMap.MapItemStorage            mapItemStorage1            = new DevExpress.XtraMap.MapItemStorage();
     this.map = new DevExpress.XtraMap.MapControl();
     ((System.ComponentModel.ISupportInitialize)(this.map)).BeginInit();
     this.SuspendLayout();
     //
     // map
     //
     this.map.Dock = System.Windows.Forms.DockStyle.Fill;
     imageTilesLayer1.DataProvider            = openStreetMapDataProvider1;
     keyColorColorizer1.ItemKeyProvider       = argumentItemKeyProvider1;
     keyColorColorizer1.PredefinedColorSchema = DevExpress.XtraMap.PredefinedColorSchema.Palette;
     vectorItemsLayer1.Colorizer = keyColorColorizer1;
     vectorItemsLayer1.Data      = mapItemStorage1;
     vectorItemsLayer1.Name      = "VectorLayer";
     this.map.Layers.Add(imageTilesLayer1);
     this.map.Layers.Add(vectorItemsLayer1);
     this.map.Location = new System.Drawing.Point(0, 0);
     this.map.Name     = "map";
     this.map.Size     = new System.Drawing.Size(731, 468);
     this.map.TabIndex = 0;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(731, 468);
     this.Controls.Add(this.map);
     this.Name  = "Form1";
     this.Text  = "Form1";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.map)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraMap.ImageLayer imageTilesLayer1 = new DevExpress.XtraMap.ImageLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     DevExpress.XtraMap.VectorItemsLayer          vectorItemsLayer1          = new DevExpress.XtraMap.VectorItemsLayer();
     DevExpress.XtraMap.MapItemStorage            mapItemStorage1            = new DevExpress.XtraMap.MapItemStorage();
     DevExpress.XtraMap.MapRectangle mapRectangle1 = new DevExpress.XtraMap.MapRectangle();
     DevExpress.XtraMap.MapRectangle mapRectangle2 = new DevExpress.XtraMap.MapRectangle();
     DevExpress.XtraMap.MapRectangle mapRectangle3 = new DevExpress.XtraMap.MapRectangle();
     DevExpress.XtraMap.MapRectangle mapRectangle4 = new DevExpress.XtraMap.MapRectangle();
     DevExpress.XtraMap.MapRectangle mapRectangle5 = new DevExpress.XtraMap.MapRectangle();
     DevExpress.XtraMap.MapRectangle mapRectangle6 = new DevExpress.XtraMap.MapRectangle();
     this.mapControl1   = new DevExpress.XtraMap.MapControl();
     this.simpleButton1 = new DevExpress.XtraEditors.SimpleButton();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     this.SuspendLayout();
     //
     // mapControl1
     //
     this.mapControl1.CenterPoint  = new DevExpress.XtraMap.GeoPoint(60D, -100D);
     this.mapControl1.Dock         = System.Windows.Forms.DockStyle.Fill;
     imageTilesLayer1.DataProvider = openStreetMapDataProvider1;
     mapRectangle1.Fill            = System.Drawing.Color.Red;
     mapRectangle1.Height          = 300D;
     mapRectangle1.Location        = new DevExpress.XtraMap.GeoPoint(55D, -120D);
     mapRectangle1.Width           = 300D;
     mapRectangle2.Fill            = System.Drawing.Color.Yellow;
     mapRectangle2.Height          = 300D;
     mapRectangle2.Location        = new DevExpress.XtraMap.GeoPoint(45D, -110D);
     mapRectangle2.Width           = 300D;
     mapRectangle3.Fill            = System.Drawing.Color.Lime;
     mapRectangle3.Height          = 300D;
     mapRectangle3.Location        = new DevExpress.XtraMap.GeoPoint(45D, -120D);
     mapRectangle3.Width           = 300D;
     mapRectangle4.Fill            = System.Drawing.Color.Blue;
     mapRectangle4.Height          = 300D;
     mapRectangle4.Location        = new DevExpress.XtraMap.GeoPoint(60D, -110D);
     mapRectangle4.Width           = 300D;
     mapRectangle5.Fill            = System.Drawing.Color.Fuchsia;
     mapRectangle5.Height          = 300D;
     mapRectangle5.Location        = new DevExpress.XtraMap.GeoPoint(60D, -120D);
     mapRectangle5.Width           = 300D;
     mapRectangle6.Height          = 300D;
     mapRectangle6.Location        = new DevExpress.XtraMap.GeoPoint(55D, -110D);
     mapRectangle6.Width           = 300D;
     mapItemStorage1.Items.Add(mapRectangle1);
     mapItemStorage1.Items.Add(mapRectangle2);
     mapItemStorage1.Items.Add(mapRectangle3);
     mapItemStorage1.Items.Add(mapRectangle4);
     mapItemStorage1.Items.Add(mapRectangle5);
     mapItemStorage1.Items.Add(mapRectangle6);
     vectorItemsLayer1.Data = mapItemStorage1;
     this.mapControl1.Layers.Add(imageTilesLayer1);
     this.mapControl1.Layers.Add(vectorItemsLayer1);
     this.mapControl1.Location  = new System.Drawing.Point(0, 0);
     this.mapControl1.Name      = "mapControl1";
     this.mapControl1.Size      = new System.Drawing.Size(513, 351);
     this.mapControl1.TabIndex  = 0;
     this.mapControl1.ZoomLevel = 2D;
     //
     // simpleButton1
     //
     this.simpleButton1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.simpleButton1.Location = new System.Drawing.Point(0, 0);
     this.simpleButton1.Name     = "simpleButton1";
     this.simpleButton1.Size     = new System.Drawing.Size(513, 23);
     this.simpleButton1.TabIndex = 1;
     this.simpleButton1.Text     = "ExportToImage";
     this.simpleButton1.Click   += new System.EventHandler(this.simpleButton1_Click);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(513, 351);
     this.Controls.Add(this.simpleButton1);
     this.Controls.Add(this.mapControl1);
     this.Name = "Form1";
     this.Text = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraMap.ImageLayer imageTilesLayer3 = new DevExpress.XtraMap.ImageLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider3 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     this.map = new DevExpress.XtraMap.MapControl();
     this.cbYCoordinatePattern  = new DevExpress.XtraEditors.ComboBoxEdit();
     this.layoutControl1        = new DevExpress.XtraLayout.LayoutControl();
     this.cbXCoordinatePattern  = new DevExpress.XtraEditors.ComboBoxEdit();
     this.layoutControlGroup1   = new DevExpress.XtraLayout.LayoutControlGroup();
     this.lciXCoordinatePattern = new DevExpress.XtraLayout.LayoutControlItem();
     this.lciYCoordinatePattern = new DevExpress.XtraLayout.LayoutControlItem();
     this.lciMap = new DevExpress.XtraLayout.LayoutControlItem();
     ((System.ComponentModel.ISupportInitialize)(this.map)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.cbYCoordinatePattern.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
     this.layoutControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.cbXCoordinatePattern.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciXCoordinatePattern)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciYCoordinatePattern)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciMap)).BeginInit();
     this.SuspendLayout();
     //
     // map
     //
     imageTilesLayer3.DataProvider = openStreetMapDataProvider3;
     this.map.Layers.Add(imageTilesLayer3);
     this.map.Location = new System.Drawing.Point(4, 28);
     this.map.Name     = "map";
     this.map.Size     = new System.Drawing.Size(616, 289);
     this.map.TabIndex = 0;
     //
     // cbYCoordinatePattern
     //
     this.cbYCoordinatePattern.Location = new System.Drawing.Point(441, 4);
     this.cbYCoordinatePattern.Name     = "cbYCoordinatePattern";
     this.cbYCoordinatePattern.Properties.AutoComplete = false;
     this.cbYCoordinatePattern.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.cbYCoordinatePattern.Size                  = new System.Drawing.Size(179, 20);
     this.cbYCoordinatePattern.StyleController       = this.layoutControl1;
     this.cbYCoordinatePattern.TabIndex              = 1;
     this.cbYCoordinatePattern.SelectedIndexChanged += new System.EventHandler(this.OnYCoordinatePatternSelectedIndexChanged);
     //
     // layoutControl1
     //
     this.layoutControl1.Controls.Add(this.map);
     this.layoutControl1.Controls.Add(this.cbXCoordinatePattern);
     this.layoutControl1.Controls.Add(this.cbYCoordinatePattern);
     this.layoutControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.layoutControl1.Location = new System.Drawing.Point(0, 0);
     this.layoutControl1.Name     = "layoutControl1";
     this.layoutControl1.Root     = this.layoutControlGroup1;
     this.layoutControl1.Size     = new System.Drawing.Size(624, 321);
     this.layoutControl1.TabIndex = 2;
     this.layoutControl1.Text     = "layoutControl1";
     //
     // cbXCoordinatePattern
     //
     this.cbXCoordinatePattern.Location = new System.Drawing.Point(113, 4);
     this.cbXCoordinatePattern.Name     = "cbXCoordinatePattern";
     this.cbXCoordinatePattern.Properties.AutoComplete = false;
     this.cbXCoordinatePattern.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.cbXCoordinatePattern.Properties.DropDownRows = 8;
     this.cbXCoordinatePattern.Size                  = new System.Drawing.Size(179, 20);
     this.cbXCoordinatePattern.StyleController       = this.layoutControl1;
     this.cbXCoordinatePattern.TabIndex              = 0;
     this.cbXCoordinatePattern.SelectedIndexChanged += new System.EventHandler(this.OnXCoordinatePatternSelectedIndexChanged);
     //
     // layoutControlGroup1
     //
     this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
     this.layoutControlGroup1.GroupBordersVisible         = false;
     this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.lciXCoordinatePattern,
         this.lciYCoordinatePattern,
         this.lciMap
     });
     this.layoutControlGroup1.Location    = new System.Drawing.Point(0, 0);
     this.layoutControlGroup1.Name        = "layoutControlGroup1";
     this.layoutControlGroup1.Padding     = new DevExpress.XtraLayout.Utils.Padding(2, 2, 2, 2);
     this.layoutControlGroup1.Size        = new System.Drawing.Size(624, 321);
     this.layoutControlGroup1.TextVisible = false;
     //
     // lciXCoordinatePattern
     //
     this.lciXCoordinatePattern.Control  = this.cbXCoordinatePattern;
     this.lciXCoordinatePattern.Location = new System.Drawing.Point(0, 0);
     this.lciXCoordinatePattern.Name     = "lciXCoordinatePattern";
     this.lciXCoordinatePattern.Padding  = new DevExpress.XtraLayout.Utils.Padding(2, 20, 2, 2);
     this.lciXCoordinatePattern.Size     = new System.Drawing.Size(310, 24);
     this.lciXCoordinatePattern.Text     = "X-Coordinate Pattern:";
     this.lciXCoordinatePattern.TextSize = new System.Drawing.Size(106, 13);
     //
     // lciYCoordinatePattern
     //
     this.lciYCoordinatePattern.Control  = this.cbYCoordinatePattern;
     this.lciYCoordinatePattern.Location = new System.Drawing.Point(310, 0);
     this.lciYCoordinatePattern.Name     = "lciYCoordinatePattern";
     this.lciYCoordinatePattern.Padding  = new DevExpress.XtraLayout.Utils.Padding(20, 2, 2, 2);
     this.lciYCoordinatePattern.Size     = new System.Drawing.Size(310, 24);
     this.lciYCoordinatePattern.Text     = "Y-Coordinate Pattern:";
     this.lciYCoordinatePattern.TextSize = new System.Drawing.Size(106, 13);
     //
     // lciMap
     //
     this.lciMap.Control     = this.map;
     this.lciMap.Location    = new System.Drawing.Point(0, 24);
     this.lciMap.Name        = "lciMap";
     this.lciMap.Size        = new System.Drawing.Size(620, 293);
     this.lciMap.TextSize    = new System.Drawing.Size(0, 0);
     this.lciMap.TextVisible = false;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(624, 321);
     this.Controls.Add(this.layoutControl1);
     this.Name = "Form1";
     this.Text = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.map)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.cbYCoordinatePattern.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
     this.layoutControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.cbXCoordinatePattern.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciXCoordinatePattern)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciYCoordinatePattern)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciMap)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraMap.ImageLayer imageTilesLayer2 = new DevExpress.XtraMap.ImageLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider2 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     this.layoutControl1       = new DevExpress.XtraLayout.LayoutControl();
     this.propertyGrid         = new System.Windows.Forms.PropertyGrid();
     this.lbSegments           = new System.Windows.Forms.ListBox();
     this.seRotationAngle      = new DevExpress.XtraEditors.SpinEdit();
     this.lbRotationDirection  = new System.Windows.Forms.ListBox();
     this.mapControl1          = new DevExpress.XtraMap.MapControl();
     this.layoutControlGroup1  = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem1   = new DevExpress.XtraLayout.LayoutControlItem();
     this.lciRotationDirection = new DevExpress.XtraLayout.LayoutControlItem();
     this.lciRotationAngle     = new DevExpress.XtraLayout.LayoutControlItem();
     this.lciSegments          = new DevExpress.XtraLayout.LayoutControlItem();
     this.lciSegmentProperties = new DevExpress.XtraLayout.LayoutControlItem();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
     this.layoutControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.seRotationAngle.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciRotationDirection)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciRotationAngle)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciSegments)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciSegmentProperties)).BeginInit();
     this.SuspendLayout();
     //
     // layoutControl1
     //
     this.layoutControl1.Controls.Add(this.propertyGrid);
     this.layoutControl1.Controls.Add(this.lbSegments);
     this.layoutControl1.Controls.Add(this.seRotationAngle);
     this.layoutControl1.Controls.Add(this.lbRotationDirection);
     this.layoutControl1.Controls.Add(this.mapControl1);
     this.layoutControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.layoutControl1.Location = new System.Drawing.Point(0, 0);
     this.layoutControl1.Name     = "layoutControl1";
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.BackColor              = System.Drawing.Color.LightGray;
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.Font                   = new System.Drawing.Font("Tahoma", 10.25F);
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.Options.UseBackColor   = true;
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.Options.UseFont        = true;
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.Options.UseTextOptions = true;
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.layoutControl1.OptionsPrint.AppearanceGroupCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
     this.layoutControl1.OptionsPrint.AppearanceItemCaption.Options.UseTextOptions  = true;
     this.layoutControl1.OptionsPrint.AppearanceItemCaption.TextOptions.HAlignment  = DevExpress.Utils.HorzAlignment.Near;
     this.layoutControl1.OptionsPrint.AppearanceItemCaption.TextOptions.VAlignment  = DevExpress.Utils.VertAlignment.Center;
     this.layoutControl1.Root     = this.layoutControlGroup1;
     this.layoutControl1.Size     = new System.Drawing.Size(718, 454);
     this.layoutControl1.TabIndex = 0;
     this.layoutControl1.Text     = "layoutControl1";
     //
     // propertyGrid
     //
     this.propertyGrid.Location = new System.Drawing.Point(510, 233);
     this.propertyGrid.Name     = "propertyGrid";
     this.propertyGrid.Size     = new System.Drawing.Size(196, 209);
     this.propertyGrid.TabIndex = 10;
     //
     // lbSegments
     //
     this.lbSegments.FormattingEnabled = true;
     this.lbSegments.Location          = new System.Drawing.Point(510, 141);
     this.lbSegments.Name                  = "lbSegments";
     this.lbSegments.Size                  = new System.Drawing.Size(196, 69);
     this.lbSegments.TabIndex              = 9;
     this.lbSegments.SelectedIndexChanged += new System.EventHandler(this.lbSegments_SelectedIndexChanged);
     //
     // seRotationAngle
     //
     this.seRotationAngle.EditValue = new decimal(new int[] {
         0,
         0,
         0,
         0
     });
     this.seRotationAngle.Location = new System.Drawing.Point(510, 28);
     this.seRotationAngle.Name     = "seRotationAngle";
     this.seRotationAngle.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
         new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)
     });
     this.seRotationAngle.Properties.Increment = new decimal(new int[] {
         1,
         0,
         0,
         65536
     });
     this.seRotationAngle.Properties.MaxValue = new decimal(new int[] {
         628,
         0,
         0,
         131072
     });
     this.seRotationAngle.Size              = new System.Drawing.Size(196, 20);
     this.seRotationAngle.StyleController   = this.layoutControl1;
     this.seRotationAngle.TabIndex          = 6;
     this.seRotationAngle.EditValueChanged += new System.EventHandler(this.seRotationAngle_EditValueChanged);
     //
     // lbRotationDirection
     //
     this.lbRotationDirection.FormattingEnabled = true;
     this.lbRotationDirection.Location          = new System.Drawing.Point(510, 68);
     this.lbRotationDirection.Name                  = "lbRotationDirection";
     this.lbRotationDirection.Size                  = new System.Drawing.Size(196, 43);
     this.lbRotationDirection.TabIndex              = 5;
     this.lbRotationDirection.SelectedIndexChanged += new System.EventHandler(this.lbRotationDirection_SelectedIndexChanged);
     //
     // mapControl1
     //
     imageTilesLayer2.DataProvider = openStreetMapDataProvider2;
     this.mapControl1.Layers.Add(imageTilesLayer2);
     this.mapControl1.Location = new System.Drawing.Point(12, 12);
     this.mapControl1.Name     = "mapControl1";
     this.mapControl1.Size     = new System.Drawing.Size(494, 430);
     this.mapControl1.TabIndex = 4;
     //
     // layoutControlGroup1
     //
     this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
     this.layoutControlGroup1.GroupBordersVisible         = false;
     this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutControlItem1,
         this.lciRotationDirection,
         this.lciRotationAngle,
         this.lciSegments,
         this.lciSegmentProperties
     });
     this.layoutControlGroup1.Location    = new System.Drawing.Point(0, 0);
     this.layoutControlGroup1.Name        = "layoutControlGroup1";
     this.layoutControlGroup1.Size        = new System.Drawing.Size(718, 454);
     this.layoutControlGroup1.TextVisible = false;
     //
     // layoutControlItem1
     //
     this.layoutControlItem1.Control     = this.mapControl1;
     this.layoutControlItem1.Location    = new System.Drawing.Point(0, 0);
     this.layoutControlItem1.Name        = "layoutControlItem1";
     this.layoutControlItem1.Size        = new System.Drawing.Size(498, 434);
     this.layoutControlItem1.TextSize    = new System.Drawing.Size(0, 0);
     this.layoutControlItem1.TextVisible = false;
     //
     // lciRotationDirection
     //
     this.lciRotationDirection.Control      = this.lbRotationDirection;
     this.lciRotationDirection.Location     = new System.Drawing.Point(498, 40);
     this.lciRotationDirection.Name         = "lciRotationDirection";
     this.lciRotationDirection.Size         = new System.Drawing.Size(200, 73);
     this.lciRotationDirection.Text         = "Rotation Direction:";
     this.lciRotationDirection.TextLocation = DevExpress.Utils.Locations.Top;
     this.lciRotationDirection.TextSize     = new System.Drawing.Size(98, 13);
     //
     // lciRotationAngle
     //
     this.lciRotationAngle.Control      = this.seRotationAngle;
     this.lciRotationAngle.Location     = new System.Drawing.Point(498, 0);
     this.lciRotationAngle.Name         = "lciRotationAngle";
     this.lciRotationAngle.Size         = new System.Drawing.Size(200, 40);
     this.lciRotationAngle.Text         = "Rotation Angle:";
     this.lciRotationAngle.TextLocation = DevExpress.Utils.Locations.Top;
     this.lciRotationAngle.TextSize     = new System.Drawing.Size(98, 13);
     //
     // lciSegments
     //
     this.lciSegments.Control      = this.lbSegments;
     this.lciSegments.Location     = new System.Drawing.Point(498, 113);
     this.lciSegments.Name         = "lciSegments";
     this.lciSegments.Size         = new System.Drawing.Size(200, 92);
     this.lciSegments.Text         = "Segments:";
     this.lciSegments.TextLocation = DevExpress.Utils.Locations.Top;
     this.lciSegments.TextSize     = new System.Drawing.Size(98, 13);
     //
     // lciSegmentProperties
     //
     this.lciSegmentProperties.Control      = this.propertyGrid;
     this.lciSegmentProperties.Location     = new System.Drawing.Point(498, 205);
     this.lciSegmentProperties.Name         = "lciSegmentProperties";
     this.lciSegmentProperties.Size         = new System.Drawing.Size(200, 229);
     this.lciSegmentProperties.Text         = "Segment Properties:";
     this.lciSegmentProperties.TextLocation = DevExpress.Utils.Locations.Top;
     this.lciSegmentProperties.TextSize     = new System.Drawing.Size(98, 13);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(718, 454);
     this.Controls.Add(this.layoutControl1);
     this.Name  = "Form1";
     this.Text  = "Form1";
     this.Load += new System.EventHandler(this.Form1_Load);
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
     this.layoutControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.seRotationAngle.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciRotationDirection)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciRotationAngle)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciSegments)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.lciSegmentProperties)).EndInit();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraMap.ImageTilesLayer           imageTilesLayer1           = new DevExpress.XtraMap.ImageTilesLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     this.splitContainerControl1 = new DevExpress.XtraEditors.SplitContainerControl();
     this.mapControl1            = new DevExpress.XtraMap.MapControl();
     this.listBoxControl1        = new DevExpress.XtraEditors.ListBoxControl();
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).BeginInit();
     this.splitContainerControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.listBoxControl1)).BeginInit();
     this.SuspendLayout();
     //
     // splitContainerControl1
     //
     this.splitContainerControl1.Dock            = System.Windows.Forms.DockStyle.Fill;
     this.splitContainerControl1.FixedPanel      = DevExpress.XtraEditors.SplitFixedPanel.Panel2;
     this.splitContainerControl1.IsSplitterFixed = true;
     this.splitContainerControl1.Location        = new System.Drawing.Point(0, 0);
     this.splitContainerControl1.Name            = "splitContainerControl1";
     this.splitContainerControl1.Panel1.Controls.Add(this.mapControl1);
     this.splitContainerControl1.Panel1.Text = "Panel1";
     this.splitContainerControl1.Panel2.Controls.Add(this.listBoxControl1);
     this.splitContainerControl1.Panel2.Text      = "Panel2";
     this.splitContainerControl1.Size             = new System.Drawing.Size(628, 507);
     this.splitContainerControl1.SplitterPosition = 267;
     this.splitContainerControl1.TabIndex         = 0;
     this.splitContainerControl1.Text             = "splitContainerControl1";
     //
     // mapControl1
     //
     this.mapControl1.CenterPoint  = new DevExpress.XtraMap.GeoPoint(54.18D, 37.585D);
     this.mapControl1.Dock         = System.Windows.Forms.DockStyle.Fill;
     imageTilesLayer1.DataProvider = openStreetMapDataProvider1;
     this.mapControl1.Layers.Add(imageTilesLayer1);
     this.mapControl1.Location = new System.Drawing.Point(0, 0);
     this.mapControl1.Name     = "mapControl1";
     this.mapControl1.NavigationPanelOptions.XCoordinatePattern = "{CP}{D:4}°";
     this.mapControl1.NavigationPanelOptions.YCoordinatePattern = "{CP}{D:4}°";
     this.mapControl1.Size      = new System.Drawing.Size(356, 507);
     this.mapControl1.TabIndex  = 0;
     this.mapControl1.ZoomLevel = 14D;
     //
     // listBoxControl1
     //
     this.listBoxControl1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.listBoxControl1.Location = new System.Drawing.Point(0, 0);
     this.listBoxControl1.Name     = "listBoxControl1";
     this.listBoxControl1.Size     = new System.Drawing.Size(267, 507);
     this.listBoxControl1.TabIndex = 0;
     //
     // BaseMapEditForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(628, 507);
     this.Controls.Add(this.splitContainerControl1);
     this.Name = "BaseMapEditForm";
     this.Text = "Редактор базовых карт";
     ((System.ComponentModel.ISupportInitialize)(this.splitContainerControl1)).EndInit();
     this.splitContainerControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.listBoxControl1)).EndInit();
     this.ResumeLayout(false);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     DevExpress.XtraMap.ImageTilesLayer           imageTilesLayer1           = new DevExpress.XtraMap.ImageTilesLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     DevExpress.XtraMap.VectorItemsLayer          vectorItemsLayer1          = new DevExpress.XtraMap.VectorItemsLayer();
     DevExpress.XtraMap.SqlGeometryDataAdapter    sqlGeometryDataAdapter1    = new DevExpress.XtraMap.SqlGeometryDataAdapter();
     DevExpress.XtraMap.MiniMap miniMap1 = new DevExpress.XtraMap.MiniMap();
     DevExpress.XtraMap.DynamicMiniMapBehavior  dynamicMiniMapBehavior1  = new DevExpress.XtraMap.DynamicMiniMapBehavior();
     DevExpress.XtraMap.MiniMapImageTilesLayer  miniMapImageTilesLayer1  = new DevExpress.XtraMap.MiniMapImageTilesLayer();
     DevExpress.XtraMap.BingMapDataProvider     bingMapDataProvider1     = new DevExpress.XtraMap.BingMapDataProvider();
     DevExpress.XtraMap.MiniMapVectorItemsLayer miniMapVectorItemsLayer1 = new DevExpress.XtraMap.MiniMapVectorItemsLayer();
     DevExpress.XtraMap.MapItemStorage          mapItemStorage1          = new DevExpress.XtraMap.MapItemStorage();
     this.mcMap  = new DevExpress.XtraMap.MapControl();
     this.itmMap = new DevExpress.XtraLayout.LayoutControlItem();
     ((System.ComponentModel.ISupportInitialize)(this.BindingSource)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.LayoutControl)).BeginInit();
     this.LayoutControl.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.LayoutGroup)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ValidationProvider)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.RibbonControl)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.mcMap)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.itmMap)).BeginInit();
     this.SuspendLayout();
     //
     // LayoutControl
     //
     this.LayoutControl.Controls.Add(this.mcMap);
     this.LayoutControl.OptionsFocus.AllowFocusControlOnActivatedTabPage           = true;
     this.LayoutControl.OptionsPrint.AppearanceGroupCaption.BackColor              = System.Drawing.Color.LightGray;
     this.LayoutControl.OptionsPrint.AppearanceGroupCaption.Font                   = new System.Drawing.Font("Tahoma", 10.25F);
     this.LayoutControl.OptionsPrint.AppearanceGroupCaption.Options.UseBackColor   = true;
     this.LayoutControl.OptionsPrint.AppearanceGroupCaption.Options.UseFont        = true;
     this.LayoutControl.OptionsPrint.AppearanceGroupCaption.Options.UseTextOptions = true;
     this.LayoutControl.OptionsPrint.AppearanceGroupCaption.TextOptions.HAlignment = DevExpress.Utils.HorzAlignment.Center;
     this.LayoutControl.OptionsPrint.AppearanceGroupCaption.TextOptions.VAlignment = DevExpress.Utils.VertAlignment.Center;
     this.LayoutControl.OptionsPrint.AppearanceItemCaption.Options.UseTextOptions  = true;
     this.LayoutControl.OptionsPrint.AppearanceItemCaption.TextOptions.HAlignment  = DevExpress.Utils.HorzAlignment.Near;
     this.LayoutControl.OptionsPrint.AppearanceItemCaption.TextOptions.VAlignment  = DevExpress.Utils.VertAlignment.Center;
     //
     // LayoutGroup
     //
     this.LayoutGroup.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.itmMap
     });
     //
     // RibbonControl
     //
     this.RibbonControl.ExpandCollapseItem.Id = 0;
     //
     // mcMap
     //
     imageTilesLayer1.DataProvider            = openStreetMapDataProvider1;
     sqlGeometryDataAdapter1.ConnectionString = "Data Source=.;Initial Catalog=cds_pegasus;Persist Security Info=True;User ID=sa;P" +
                                                "assword=rabbit";
     sqlGeometryDataAdapter1.SpatialDataMember = "geometry";
     sqlGeometryDataAdapter1.SqlText           = "SELECT [Id],[section],[description],[geometry],[geography] FROM [dbo].[RPT_MapLay" +
                                                 "out]";
     vectorItemsLayer1.Data = sqlGeometryDataAdapter1;
     this.mcMap.Layers.Add(imageTilesLayer1);
     this.mcMap.Layers.Add(vectorItemsLayer1);
     this.mcMap.Location                  = new System.Drawing.Point(12, 12);
     miniMap1.Behavior                    = dynamicMiniMapBehavior1;
     bingMapDataProvider1.BingKey         = "YOUR BING MAPS KEY";
     miniMapImageTilesLayer1.DataProvider = bingMapDataProvider1;
     miniMapVectorItemsLayer1.Data        = mapItemStorage1;
     miniMap1.Layers.Add(miniMapImageTilesLayer1);
     miniMap1.Layers.Add(miniMapVectorItemsLayer1);
     this.mcMap.MiniMap  = miniMap1;
     this.mcMap.Name     = "mcMap";
     this.mcMap.Size     = new System.Drawing.Size(972, 553);
     this.mcMap.TabIndex = 4;
     //
     // itmMap
     //
     this.itmMap.Control = this.mcMap;
     this.itmMap.CustomizationFormText = "Map";
     this.itmMap.Location    = new System.Drawing.Point(0, 0);
     this.itmMap.Name        = "itmMap";
     this.itmMap.Size        = new System.Drawing.Size(976, 557);
     this.itmMap.Text        = "Map";
     this.itmMap.TextSize    = new System.Drawing.Size(0, 0);
     this.itmMap.TextVisible = false;
     //
     // MapForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.ClientSize          = new System.Drawing.Size(1008, 729);
     this.Name = "MapForm";
     ((System.ComponentModel.ISupportInitialize)(this.BindingSource)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.LayoutControl)).EndInit();
     this.LayoutControl.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.LayoutGroup)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ValidationProvider)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.RibbonControl)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.mcMap)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.itmMap)).EndInit();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 12
0
 /// <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();
     DevExpress.XtraMap.ImageLayer imageTilesLayer1 = new DevExpress.XtraMap.ImageLayer();
     DevExpress.XtraMap.OpenStreetMapDataProvider openStreetMapDataProvider1 = new DevExpress.XtraMap.OpenStreetMapDataProvider();
     DevExpress.XtraMap.VectorItemsLayer          vectorItemsLayer1          = new DevExpress.XtraMap.VectorItemsLayer();
     this.mapControl1 = new DevExpress.XtraMap.MapControl();
     this.timer1      = new System.Windows.Forms.Timer(this.components);
     this.panel1      = new System.Windows.Forms.Panel();
     this.button1     = new System.Windows.Forms.Button();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // mapControl1
     //
     this.mapControl1.Dock         = System.Windows.Forms.DockStyle.Fill;
     imageTilesLayer1.DataProvider = openStreetMapDataProvider1;
     this.mapControl1.Layers.Add(imageTilesLayer1);
     this.mapControl1.Layers.Add(vectorItemsLayer1);
     this.mapControl1.Location = new System.Drawing.Point(0, 0);
     this.mapControl1.Name     = "mapControl1";
     this.mapControl1.Size     = new System.Drawing.Size(828, 561);
     this.mapControl1.TabIndex = 0;
     //
     // timer1
     //
     this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
     //
     // panel1
     //
     this.panel1.Controls.Add(this.button1);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(828, 33);
     this.panel1.TabIndex = 1;
     //
     // button1
     //
     this.button1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.button1.Location = new System.Drawing.Point(0, 0);
     this.button1.Name     = "button1";
     this.button1.Size     = new System.Drawing.Size(828, 33);
     this.button1.TabIndex = 1;
     this.button1.Text     = "Update DataSource";
     this.button1.UseVisualStyleBackColor = true;
     this.button1.Click += new System.EventHandler(this.button1_Click);
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(828, 561);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.mapControl1);
     this.Name = "Form1";
     this.Text = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }