示例#1
0
        // Creates an adapter for the mini map's vector layer.
        private IMapDataAdapter CreateMiniMapAdapter(object source)
        {
            ListSourceDataAdapter adapter = new ListSourceDataAdapter();

            adapter.DataSource = source;

            adapter.Mappings.Latitude  = "Latitude";
            adapter.Mappings.Longitude = "Longitude";

            adapter.PropertyMappings.Add(new MapItemFillMapping()
            {
                DefaultValue = Color.Red
            });
            adapter.PropertyMappings.Add(new MapItemStrokeMapping()
            {
                DefaultValue = Color.White
            });
            adapter.PropertyMappings.Add(new MapItemStrokeWidthMapping()
            {
                DefaultValue = 2
            });
            adapter.PropertyMappings.Add(new MapDotSizeMapping()
            {
                DefaultValue = 8
            });

            adapter.DefaultMapItemType = MapItemType.Dot;

            return(adapter);
        }
示例#2
0
        LayerBase CreateVectorLayer(object data)
        {
            ListSourceDataAdapter adapter = new ListSourceDataAdapter()
            {
                DataSource         = data,
                DefaultMapItemType = MapItemType.Custom
            };

            adapter.Mappings.Latitude  = "Latitude";
            adapter.Mappings.Longitude = "Longitude";

            adapter.AttributeMappings.Add(new MapItemAttributeMapping()
            {
                Name = "Name", Member = "Name"
            });
            adapter.AttributeMappings.Add(new MapItemAttributeMapping()
            {
                Name = "Year", Member = "Year"
            });
            adapter.AttributeMappings.Add(new MapItemAttributeMapping()
            {
                Name = "Description", Member = "Description"
            });

            VectorItemsLayer layer = new VectorItemsLayer()
            {
                Data               = adapter,
                ItemImageIndex     = 0,
                EnableSelection    = false,
                EnableHighlighting = false,
                ToolTipPattern     = "<b>{Name} ({Year})</b>\n{Description}"
            };

            return(layer);
        }
        public Form1()
        {
            InitializeComponent();

            mapControl1.SetMapItemFactory(new MapItemFactory());
            ListSourceDataAdapter adapter = (ListSourceDataAdapter)Layer.Data;

            adapter.DataSource = TestData.Instance;
        }
示例#4
0
        private ListSourceDataAdapter ObtenerTareas()
        {
            var lsD = new ListSourceDataAdapter
            {
                DefaultMapItemType = MapItemType.Pushpin,
                Mappings = { Latitude = "Latitude", Longitude = "Longitude", Text = "SEQUENCE" },
                DataSource = TareasCumplimientodeEntregas.ToList()
            };

            Image image = (Image)Properties.Resources.ResourceManager.GetObject("pushpin_red");

            lsD.SetMapItemFactory(new PushpinFactory(image, Color.Red));

            return lsD;
        }
示例#5
0
        MiniMap CreateMiniMap(object data)
        {
            MiniMap miniMap = new MiniMap()
            {
                Height   = 200,
                Width    = 300,
                Behavior = new FixedMiniMapBehavior()
                {
                    CenterPoint = new GeoPoint(-35, 140),
                    ZoomLevel   = 3
                }
            };

            MiniMapImageTilesLayer mapLayer = new MiniMapImageTilesLayer()
            {
                DataProvider = new BingMapDataProvider()
                {
                    BingKey = bingKey,
                    Kind    = BingMapKind.Area
                }
            };

            MiniMapVectorItemsLayer vectorLayer = new MiniMapVectorItemsLayer();
            ListSourceDataAdapter   adapter     = new ListSourceDataAdapter();

            adapter.DataSource         = data;
            adapter.Mappings.Latitude  = "Latitude";
            adapter.Mappings.Longitude = "Longitude";
            adapter.DefaultMapItemType = MapItemType.Dot;
            adapter.PropertyMappings.Add(
                new MapDotSizeMapping()
            {
                DefaultValue = 10
            }
                );
            vectorLayer.Data             = adapter;
            vectorLayer.ItemStyle.Fill   = Color.FromArgb(74, 212, 255);
            vectorLayer.ItemStyle.Stroke = Color.Gray;

            miniMap.Layers.Add(mapLayer);
            miniMap.Layers.Add(vectorLayer);
            return(miniMap);
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            // Create a data source for the vector layer.
            var dataAdapter = new ListSourceDataAdapter();

            dataAdapter.DataSource         = dataSource;
            dataAdapter.DefaultMapItemType = MapItemType.Rectangle;
            // Specify the obligatory mappings.
            dataAdapter.Mappings.Latitude  = "Top";
            dataAdapter.Mappings.Longitude = "Left";
            // Add rectange specific property mappings.
            dataAdapter.PropertyMappings.AddRange(new MapItemPropertyMappingBase[] {
                new MapRectangleWidthMapping {
                    Member = "Width", DefaultValue = 0
                },
                new MapRectangleHeightMapping {
                    Member = "Height", DefaultValue = 0
                }
            });
            VectorLayer.Data = dataAdapter;
        }
示例#7
0
        // Creates an adapter for the map's vector layer.
        private IMapDataAdapter CreateAdapter(object source)
        {
            ListSourceDataAdapter adapter = new ListSourceDataAdapter();

            adapter.DataSource = source;

            adapter.Mappings.Latitude  = "Latitude";
            adapter.Mappings.Longitude = "Longitude";

            adapter.AttributeMappings.Add(new MapItemAttributeMapping()
            {
                Member = "Name", Name = "Name"
            });
            adapter.AttributeMappings.Add(new MapItemAttributeMapping()
            {
                Member = "Year", Name = "Year"
            });
            adapter.AttributeMappings.Add(new MapItemAttributeMapping()
            {
                Member = "Description", Name = "Description"
            });

            return(adapter);
        }
示例#8
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.VectorItemsLayer            vectorItemsLayer1      = new DevExpress.XtraMap.VectorItemsLayer();
     DevExpress.XtraMap.ListSourceDataAdapter       listSourceDataAdapter1 = new ListSourceDataAdapter();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MapsModule));
     DevExpress.XtraCharts.XYDiagram      xyDiagram1          = new DevExpress.XtraCharts.XYDiagram();
     DevExpress.XtraCharts.Series         series1             = new DevExpress.XtraCharts.Series();
     DevExpress.XtraCharts.LineSeriesView lineSeriesView1     = new DevExpress.XtraCharts.LineSeriesView();
     DevExpress.XtraCharts.LineSeriesView lineSeriesView2     = new DevExpress.XtraCharts.LineSeriesView();
     this.mapContainerPanel          = new DevExpress.XtraEditors.PanelControl();
     this.layoutControl1             = new DevExpress.XtraLayout.LayoutControl();
     this.mapControl1                = new DevExpress.XtraMap.MapControl();
     this.layoutControlGroup1        = new DevExpress.XtraLayout.LayoutControlGroup();
     this.layoutControlItem1         = new DevExpress.XtraLayout.LayoutControlItem();
     this.ribbonControl1             = new DevExpress.XtraBars.Ribbon.RibbonControl();
     this.chkBingRoad                = new DevExpress.XtraBars.BarCheckItem();
     this.chkBingArea                = new DevExpress.XtraBars.BarCheckItem();
     this.chkBingHybrid              = new DevExpress.XtraBars.BarCheckItem();
     this.chkFahrenheit              = new DevExpress.XtraBars.BarCheckItem();
     this.chkCelsius                 = new DevExpress.XtraBars.BarCheckItem();
     this.viewRibbonPage1            = new DevExpress.XtraScheduler.UI.ViewRibbonPage();
     this.activeViewRibbonPageGroup1 = new DevExpress.XtraScheduler.UI.ActiveViewRibbonPageGroup();
     this.timeScaleRibbonPageGroup1  = new DevExpress.XtraScheduler.UI.TimeScaleRibbonPageGroup();
     this.panelControl1              = new DevExpress.XtraEditors.PanelControl();
     this.panelControl2              = new DevExpress.XtraEditors.PanelControl();
     this.lbTemperature              = new DevExpress.XtraEditors.LabelControl();
     this.peWeatherIcon              = new DevExpress.XtraEditors.PictureEdit();
     this.lbCity        = new DevExpress.XtraEditors.LabelControl();
     this.chartControl1 = new DevExpress.XtraCharts.ChartControl();
     ((System.ComponentModel.ISupportInitialize)(this.mapContainerPanel)).BeginInit();
     this.mapContainerPanel.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
     this.layoutControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
     this.panelControl1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
     this.panelControl2.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.peWeatherIcon.Properties)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartControl1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(series1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(lineSeriesView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(lineSeriesView2)).BeginInit();
     this.SuspendLayout();
     //
     // mapContainerPanel
     //
     this.mapContainerPanel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.mapContainerPanel.Controls.Add(this.layoutControl1);
     this.mapContainerPanel.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.mapContainerPanel.Location = new System.Drawing.Point(0, 142);
     this.mapContainerPanel.Margin   = new System.Windows.Forms.Padding(23);
     this.mapContainerPanel.Name     = "mapContainerPanel";
     this.mapContainerPanel.Size     = new System.Drawing.Size(1053, 597);
     this.mapContainerPanel.TabIndex = 15;
     //
     // layoutControl1
     //
     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.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(376, 238, 905, 577);
     this.layoutControl1.Root     = this.layoutControlGroup1;
     this.layoutControl1.Size     = new System.Drawing.Size(1053, 597);
     this.layoutControl1.TabIndex = 16;
     this.layoutControl1.Text     = "layoutControl1";
     //
     // mapControl1
     //
     this.mapControl1.BackColor                = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(7)))), ((int)(((byte)(21)))));
     this.mapControl1.BorderStyle              = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.mapControl1.CenterPoint              = new DevExpress.XtraMap.GeoPoint(5D, -70D);
     listSourceDataAdapter1.Mappings.Latitude  = "Latitude";
     listSourceDataAdapter1.Mappings.Longitude = "Longitude";
     listSourceDataAdapter1.Mappings.Text      = "CelsiusDisplayText";
     vectorItemsLayer1.Data = listSourceDataAdapter1;
     this.mapControl1.Layers.Add(imageTilesLayer1);
     this.mapControl1.Layers.Add(vectorItemsLayer1);
     this.mapControl1.Location           = new System.Drawing.Point(12, 12);
     this.mapControl1.MinZoomLevel       = 1.7D;
     this.mapControl1.Name               = "mapControl1";
     this.mapControl1.SelectionMode      = DevExpress.XtraMap.ElementSelectionMode.Single;
     this.mapControl1.Size               = new System.Drawing.Size(1029, 573);
     this.mapControl1.TabIndex           = 17;
     this.mapControl1.ZoomLevel          = 3D;
     this.mapControl1.SelectionChanging += new DevExpress.XtraMap.MapSelectionChangingEventHandler(this.mapControl1_SelectionChanging);
     this.mapControl1.SelectionChanged  += new DevExpress.XtraMap.MapSelectionChangedEventHandler(this.mapControl1_SelectionChanged);
     //
     // layoutControlGroup1
     //
     this.layoutControlGroup1.CustomizationFormText       = "layoutControlGroup1";
     this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
     this.layoutControlGroup1.GroupBordersVisible         = false;
     this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
         this.layoutControlItem1
     });
     this.layoutControlGroup1.Location    = new System.Drawing.Point(0, 0);
     this.layoutControlGroup1.Name        = "layoutControlGroup1";
     this.layoutControlGroup1.Size        = new System.Drawing.Size(1053, 597);
     this.layoutControlGroup1.Text        = "layoutControlGroup1";
     this.layoutControlGroup1.TextVisible = false;
     //
     // layoutControlItem1
     //
     this.layoutControlItem1.Control = this.mapControl1;
     this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
     this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
     this.layoutControlItem1.Name     = "layoutControlItem1";
     this.layoutControlItem1.Size     = new System.Drawing.Size(1033, 577);
     this.layoutControlItem1.Text     = "layoutControlItem1";
     this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
     this.layoutControlItem1.TextToControlDistance = 0;
     this.layoutControlItem1.TextVisible           = false;
     //
     // ribbonControl1
     //
     this.ribbonControl1.ExpandCollapseItem.Id = 0;
     this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
         this.ribbonControl1.ExpandCollapseItem,
         this.chkBingRoad,
         this.chkBingArea,
         this.chkBingHybrid,
         this.chkFahrenheit,
         this.chkCelsius
     });
     this.ribbonControl1.Location  = new System.Drawing.Point(0, 0);
     this.ribbonControl1.MaxItemId = 45;
     this.ribbonControl1.Name      = "ribbonControl1";
     this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] {
         this.viewRibbonPage1
     });
     this.ribbonControl1.Size = new System.Drawing.Size(1053, 142);
     //
     // chkBingRoad
     //
     this.chkBingRoad.Caption         = "Road";
     this.chkBingRoad.Glyph           = ((System.Drawing.Image)(resources.GetObject("chkBingRoad.Glyph")));
     this.chkBingRoad.GroupIndex      = 1;
     this.chkBingRoad.Id              = 40;
     this.chkBingRoad.LargeGlyph      = ((System.Drawing.Image)(resources.GetObject("chkBingRoad.LargeGlyph")));
     this.chkBingRoad.Name            = "chkBingRoad";
     this.chkBingRoad.Tag             = 0;
     this.chkBingRoad.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkBingRoad_CheckedChanged);
     //
     // chkBingArea
     //
     this.chkBingArea.Caption         = "Area";
     this.chkBingArea.Checked         = true;
     this.chkBingArea.Glyph           = ((System.Drawing.Image)(resources.GetObject("chkBingArea.Glyph")));
     this.chkBingArea.GroupIndex      = 1;
     this.chkBingArea.Id              = 41;
     this.chkBingArea.LargeGlyph      = ((System.Drawing.Image)(resources.GetObject("chkBingArea.LargeGlyph")));
     this.chkBingArea.Name            = "chkBingArea";
     this.chkBingArea.Tag             = 1;
     this.chkBingArea.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkBingRoad_CheckedChanged);
     //
     // chkBingHybrid
     //
     this.chkBingHybrid.Caption         = "Hybrid";
     this.chkBingHybrid.Glyph           = ((System.Drawing.Image)(resources.GetObject("chkBingHybrid.Glyph")));
     this.chkBingHybrid.GroupIndex      = 1;
     this.chkBingHybrid.Id              = 42;
     this.chkBingHybrid.LargeGlyph      = ((System.Drawing.Image)(resources.GetObject("chkBingHybrid.LargeGlyph")));
     this.chkBingHybrid.Name            = "chkBingHybrid";
     this.chkBingHybrid.Tag             = 2;
     this.chkBingHybrid.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkBingRoad_CheckedChanged);
     //
     // chkFahrenheit
     //
     this.chkFahrenheit.Caption         = "Fahrenheit";
     this.chkFahrenheit.Glyph           = ((System.Drawing.Image)(resources.GetObject("chkFahrenheit.Glyph")));
     this.chkFahrenheit.GroupIndex      = 1;
     this.chkFahrenheit.Id              = 43;
     this.chkFahrenheit.LargeGlyph      = ((System.Drawing.Image)(resources.GetObject("chkFahrenheit.LargeGlyph")));
     this.chkFahrenheit.Name            = "chkFahrenheit";
     this.chkFahrenheit.Tag             = 0;
     this.chkFahrenheit.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkCelsius_CheckedChanged);
     //
     // chkCelsius
     //
     this.chkCelsius.Caption         = "Celsius";
     this.chkCelsius.Checked         = true;
     this.chkCelsius.Glyph           = ((System.Drawing.Image)(resources.GetObject("chkCelsius.Glyph")));
     this.chkCelsius.GroupIndex      = 1;
     this.chkCelsius.Id              = 44;
     this.chkCelsius.LargeGlyph      = ((System.Drawing.Image)(resources.GetObject("chkCelsius.LargeGlyph")));
     this.chkCelsius.Name            = "chkCelsius";
     this.chkCelsius.Tag             = 1;
     this.chkCelsius.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkCelsius_CheckedChanged);
     //
     // viewRibbonPage1
     //
     this.viewRibbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] {
         this.activeViewRibbonPageGroup1,
         this.timeScaleRibbonPageGroup1
     });
     this.viewRibbonPage1.Name = "viewRibbonPage1";
     //
     // activeViewRibbonPageGroup1
     //
     this.activeViewRibbonPageGroup1.AllowTextClipping = false;
     this.activeViewRibbonPageGroup1.ItemLinks.Add(this.chkBingRoad);
     this.activeViewRibbonPageGroup1.ItemLinks.Add(this.chkBingArea);
     this.activeViewRibbonPageGroup1.ItemLinks.Add(this.chkBingHybrid);
     this.activeViewRibbonPageGroup1.Name = "activeViewRibbonPageGroup1";
     this.activeViewRibbonPageGroup1.Text = "BingMap Kind";
     //
     // timeScaleRibbonPageGroup1
     //
     this.timeScaleRibbonPageGroup1.AllowTextClipping = false;
     this.timeScaleRibbonPageGroup1.ItemLinks.Add(this.chkFahrenheit);
     this.timeScaleRibbonPageGroup1.ItemLinks.Add(this.chkCelsius);
     this.timeScaleRibbonPageGroup1.Name = "timeScaleRibbonPageGroup1";
     this.timeScaleRibbonPageGroup1.Text = "TemperatureUnit";
     //
     // panelControl1
     //
     this.panelControl1.Appearance.BackColor              = System.Drawing.Color.Black;
     this.panelControl1.Appearance.BorderColor            = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(71)))), ((int)(((byte)(80)))));
     this.panelControl1.Appearance.Options.UseBackColor   = true;
     this.panelControl1.Appearance.Options.UseBorderColor = true;
     this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
     this.panelControl1.Controls.Add(this.panelControl2);
     this.panelControl1.Controls.Add(this.chartControl1);
     this.panelControl1.Location          = new System.Drawing.Point(21, 21);
     this.panelControl1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
     this.panelControl1.LookAndFeel.UseDefaultLookAndFeel = false;
     this.panelControl1.Name     = "panelControl1";
     this.panelControl1.Padding  = new System.Windows.Forms.Padding(13, 13, 23, 14);
     this.panelControl1.Size     = new System.Drawing.Size(320, 267);
     this.panelControl1.TabIndex = 17;
     //
     // panelControl2
     //
     this.panelControl2.Appearance.BackColor            = System.Drawing.Color.Black;
     this.panelControl2.Appearance.Options.UseBackColor = true;
     this.panelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.panelControl2.Controls.Add(this.lbTemperature);
     this.panelControl2.Controls.Add(this.peWeatherIcon);
     this.panelControl2.Controls.Add(this.lbCity);
     this.panelControl2.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.panelControl2.Location = new System.Drawing.Point(15, 15);
     this.panelControl2.LookAndFeel.UseDefaultLookAndFeel = false;
     this.panelControl2.Name     = "panelControl2";
     this.panelControl2.Size     = new System.Drawing.Size(280, 57);
     this.panelControl2.TabIndex = 15;
     //
     // lbTemperature
     //
     this.lbTemperature.Appearance.Font      = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
     this.lbTemperature.Appearance.ForeColor = System.Drawing.Color.White;
     this.lbTemperature.AutoSizeMode         = DevExpress.XtraEditors.LabelAutoSizeMode.None;
     this.lbTemperature.Location             = new System.Drawing.Point(53, 26);
     this.lbTemperature.Name     = "lbTemperature";
     this.lbTemperature.Size     = new System.Drawing.Size(182, 34);
     this.lbTemperature.TabIndex = 2;
     //
     // peWeatherIcon
     //
     this.peWeatherIcon.Location = new System.Drawing.Point(0, 19);
     this.peWeatherIcon.Name     = "peWeatherIcon";
     this.peWeatherIcon.Properties.Appearance.BackColor            = System.Drawing.Color.Transparent;
     this.peWeatherIcon.Properties.Appearance.Options.UseBackColor = true;
     this.peWeatherIcon.Properties.BorderStyle      = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
     this.peWeatherIcon.Properties.NullText         = " ";
     this.peWeatherIcon.Properties.PictureAlignment = System.Drawing.ContentAlignment.TopLeft;
     this.peWeatherIcon.Properties.ShowMenu         = false;
     this.peWeatherIcon.Size     = new System.Drawing.Size(49, 41);
     this.peWeatherIcon.TabIndex = 1;
     //
     // lbCity
     //
     this.lbCity.Appearance.Font      = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.lbCity.Appearance.ForeColor = System.Drawing.Color.White;
     this.lbCity.AutoSizeMode         = DevExpress.XtraEditors.LabelAutoSizeMode.None;
     this.lbCity.Location             = new System.Drawing.Point(14, 0);
     this.lbCity.Name     = "lbCity";
     this.lbCity.Size     = new System.Drawing.Size(249, 21);
     this.lbCity.TabIndex = 0;
     //
     // chartControl1
     //
     this.chartControl1.BackColor = System.Drawing.Color.Black;
     this.chartControl1.BorderOptions.Visibility = Utils.DefaultBoolean.False;
     xyDiagram1.AxisX.Color = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(173)))), ((int)(((byte)(173)))));
     xyDiagram1.AxisX.DateTimeScaleOptions.AutoGrid      = false;
     xyDiagram1.AxisX.DateTimeScaleOptions.GridAlignment = DevExpress.XtraCharts.DateTimeGridAlignment.Day;
     xyDiagram1.AxisX.DateTimeScaleOptions.MeasureUnit   = DevExpress.XtraCharts.DateTimeMeasureUnit.Hour;
     xyDiagram1.AxisX.GridLines.Color        = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
     xyDiagram1.AxisX.GridLines.MinorColor   = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
     xyDiagram1.AxisX.GridLines.MinorVisible = true;
     xyDiagram1.AxisX.GridLines.Visible      = true;
     xyDiagram1.AxisX.Interlaced             = true;
     xyDiagram1.AxisX.InterlacedColor        = System.Drawing.Color.Transparent;
     xyDiagram1.AxisX.Label.TextPattern      = "{A:dd.MM}";
     xyDiagram1.AxisX.Label.ResolveOverlappingOptions.AllowHide    = false;
     xyDiagram1.AxisX.Label.ResolveOverlappingOptions.AllowRotate  = false;
     xyDiagram1.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;
     xyDiagram1.AxisX.Label.TextColor            = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(173)))), ((int)(((byte)(173)))));
     xyDiagram1.AxisX.Tickmarks.MinorVisible     = false;
     xyDiagram1.AxisX.Tickmarks.Visible          = false;
     xyDiagram1.AxisX.VisibleInPanesSerializable = "-1";
     xyDiagram1.AxisY.Color                = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
     xyDiagram1.AxisY.GridLines.Color      = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
     xyDiagram1.AxisY.GridLines.MinorColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
     xyDiagram1.AxisY.InterlacedColor      = System.Drawing.Color.Transparent;
     xyDiagram1.AxisY.Label.ResolveOverlappingOptions.AllowRotate  = false;
     xyDiagram1.AxisY.Label.ResolveOverlappingOptions.AllowStagger = false;
     xyDiagram1.AxisY.Label.TextColor                = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(173)))), ((int)(((byte)(173)))));
     xyDiagram1.AxisY.Tickmarks.MinorVisible         = false;
     xyDiagram1.AxisY.Tickmarks.Visible              = false;
     xyDiagram1.AxisY.VisibleInPanesSerializable     = "-1";
     xyDiagram1.AxisY.WholeRange.AlwaysShowZeroLevel = false;
     xyDiagram1.DefaultPane.BackColor                = System.Drawing.Color.Transparent;
     xyDiagram1.Margins.Bottom            = 2;
     xyDiagram1.Margins.Left              = 0;
     xyDiagram1.Margins.Right             = 0;
     xyDiagram1.Margins.Top               = 2;
     this.chartControl1.Diagram           = xyDiagram1;
     this.chartControl1.Dock              = System.Windows.Forms.DockStyle.Bottom;
     this.chartControl1.Legend.Visibility = Utils.DefaultBoolean.False;
     this.chartControl1.Location          = new System.Drawing.Point(15, 72);
     this.chartControl1.Margin            = new System.Windows.Forms.Padding(0);
     this.chartControl1.Name              = "chartControl1";
     series1.ArgumentDataMember           = "CurrentDateTime";
     series1.ArgumentScaleType            = DevExpress.XtraCharts.ScaleType.DateTime;
     series1.CrosshairLabelPattern        = "{A:g}: {V}";
     series1.Name = "Series 1";
     series1.ValueDataMembersSerializable = "Weather.CelsiusTemperature";
     series1.View = lineSeriesView1;
     this.chartControl1.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
         series1
     };
     this.chartControl1.SeriesTemplate.View = lineSeriesView2;
     this.chartControl1.Size     = new System.Drawing.Size(280, 179);
     this.chartControl1.TabIndex = 14;
     //
     // MapsModule
     //
     this.Appearance.Options.UseFont = true;
     this.Controls.Add(this.panelControl1);
     this.Controls.Add(this.mapContainerPanel);
     this.Controls.Add(this.ribbonControl1);
     this.Name = "MapsModule";
     this.Size = new System.Drawing.Size(1053, 739);
     ((System.ComponentModel.ISupportInitialize)(this.mapContainerPanel)).EndInit();
     this.mapContainerPanel.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
     this.layoutControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
     this.panelControl1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
     this.panelControl2.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.peWeatherIcon.Properties)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(xyDiagram1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(lineSeriesView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(series1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(lineSeriesView2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.chartControl1)).EndInit();
     this.ResumeLayout(false);
 }
示例#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.ImageTilesLayer imageTilesLayer1 = new DevExpress.XtraMap.ImageTilesLayer();
            DevExpress.XtraMap.VectorItemsLayer vectorItemsLayer1 = new DevExpress.XtraMap.VectorItemsLayer();
            DevExpress.XtraMap.ListSourceDataAdapter listSourceDataAdapter1 = new ListSourceDataAdapter();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MapsModule));
            DevExpress.XtraCharts.XYDiagram xyDiagram1 = new DevExpress.XtraCharts.XYDiagram();
            DevExpress.XtraCharts.Series series1 = new DevExpress.XtraCharts.Series();
            DevExpress.XtraCharts.LineSeriesView lineSeriesView1 = new DevExpress.XtraCharts.LineSeriesView();
            DevExpress.XtraCharts.LineSeriesView lineSeriesView2 = new DevExpress.XtraCharts.LineSeriesView();
            this.mapContainerPanel = new DevExpress.XtraEditors.PanelControl();
            this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
            this.mapControl1 = new DevExpress.XtraMap.MapControl();
            this.layoutControlGroup1 = new DevExpress.XtraLayout.LayoutControlGroup();
            this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
            this.ribbonControl1 = new DevExpress.XtraBars.Ribbon.RibbonControl();
            this.chkBingRoad = new DevExpress.XtraBars.BarCheckItem();
            this.chkBingArea = new DevExpress.XtraBars.BarCheckItem();
            this.chkBingHybrid = new DevExpress.XtraBars.BarCheckItem();
            this.chkFahrenheit = new DevExpress.XtraBars.BarCheckItem();
            this.chkCelsius = new DevExpress.XtraBars.BarCheckItem();
            this.viewRibbonPage1 = new DevExpress.XtraScheduler.UI.ViewRibbonPage();
            this.activeViewRibbonPageGroup1 = new DevExpress.XtraScheduler.UI.ActiveViewRibbonPageGroup();
            this.timeScaleRibbonPageGroup1 = new DevExpress.XtraScheduler.UI.TimeScaleRibbonPageGroup();
            this.panelControl1 = new DevExpress.XtraEditors.PanelControl();
            this.panelControl2 = new DevExpress.XtraEditors.PanelControl();
            this.lbTemperature = new DevExpress.XtraEditors.LabelControl();
            this.peWeatherIcon = new DevExpress.XtraEditors.PictureEdit();
            this.lbCity = new DevExpress.XtraEditors.LabelControl();
            this.chartControl1 = new DevExpress.XtraCharts.ChartControl();
            ((System.ComponentModel.ISupportInitialize)(this.mapContainerPanel)).BeginInit();
            this.mapContainerPanel.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
            this.layoutControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit();
            this.panelControl1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).BeginInit();
            this.panelControl2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.peWeatherIcon.Properties)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.chartControl1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(xyDiagram1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(series1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(lineSeriesView1)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(lineSeriesView2)).BeginInit();
            this.SuspendLayout();
            // 
            // mapContainerPanel
            // 
            this.mapContainerPanel.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            this.mapContainerPanel.Controls.Add(this.layoutControl1);
            this.mapContainerPanel.Dock = System.Windows.Forms.DockStyle.Fill;
            this.mapContainerPanel.Location = new System.Drawing.Point(0, 142);
            this.mapContainerPanel.Margin = new System.Windows.Forms.Padding(23);
            this.mapContainerPanel.Name = "mapContainerPanel";
            this.mapContainerPanel.Size = new System.Drawing.Size(1053, 597);
            this.mapContainerPanel.TabIndex = 15;
            // 
            // layoutControl1
            // 
            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.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(376, 238, 905, 577);
            this.layoutControl1.Root = this.layoutControlGroup1;
            this.layoutControl1.Size = new System.Drawing.Size(1053, 597);
            this.layoutControl1.TabIndex = 16;
            this.layoutControl1.Text = "layoutControl1";
            // 
            // mapControl1
            // 
            this.mapControl1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(7)))), ((int)(((byte)(21)))));
            this.mapControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            this.mapControl1.CenterPoint = new DevExpress.XtraMap.GeoPoint(5D, -70D);
            listSourceDataAdapter1.Mappings.Latitude = "Latitude";
            listSourceDataAdapter1.Mappings.Longitude = "Longitude";
            listSourceDataAdapter1.Mappings.Text = "CelsiusDisplayText";
            vectorItemsLayer1.Data = listSourceDataAdapter1;
            this.mapControl1.Layers.Add(imageTilesLayer1);
            this.mapControl1.Layers.Add(vectorItemsLayer1);
            this.mapControl1.Location = new System.Drawing.Point(12, 12);
            this.mapControl1.MinZoomLevel = 1.7D;
            this.mapControl1.Name = "mapControl1";
            this.mapControl1.SelectionMode = DevExpress.XtraMap.ElementSelectionMode.Single;
            this.mapControl1.Size = new System.Drawing.Size(1029, 573);
            this.mapControl1.TabIndex = 17;
            this.mapControl1.ZoomLevel = 3D;
            this.mapControl1.SelectionChanging += new DevExpress.XtraMap.MapSelectionChangingEventHandler(this.mapControl1_SelectionChanging);
            this.mapControl1.SelectionChanged += new DevExpress.XtraMap.MapSelectionChangedEventHandler(this.mapControl1_SelectionChanged);
            // 
            // layoutControlGroup1
            // 
            this.layoutControlGroup1.CustomizationFormText = "layoutControlGroup1";
            this.layoutControlGroup1.EnableIndentsWithoutBorders = DevExpress.Utils.DefaultBoolean.True;
            this.layoutControlGroup1.GroupBordersVisible = false;
            this.layoutControlGroup1.Items.AddRange(new DevExpress.XtraLayout.BaseLayoutItem[] {
            this.layoutControlItem1});
            this.layoutControlGroup1.Location = new System.Drawing.Point(0, 0);
            this.layoutControlGroup1.Name = "layoutControlGroup1";
            this.layoutControlGroup1.Size = new System.Drawing.Size(1053, 597);
            this.layoutControlGroup1.Text = "layoutControlGroup1";
            this.layoutControlGroup1.TextVisible = false;
            // 
            // layoutControlItem1
            // 
            this.layoutControlItem1.Control = this.mapControl1;
            this.layoutControlItem1.CustomizationFormText = "layoutControlItem1";
            this.layoutControlItem1.Location = new System.Drawing.Point(0, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new System.Drawing.Size(1033, 577);
            this.layoutControlItem1.Text = "layoutControlItem1";
            this.layoutControlItem1.TextSize = new System.Drawing.Size(0, 0);
            this.layoutControlItem1.TextToControlDistance = 0;
            this.layoutControlItem1.TextVisible = false;
            // 
            // ribbonControl1
            // 
            this.ribbonControl1.ExpandCollapseItem.Id = 0;
            this.ribbonControl1.Items.AddRange(new DevExpress.XtraBars.BarItem[] {
            this.ribbonControl1.ExpandCollapseItem,
            this.chkBingRoad,
            this.chkBingArea,
            this.chkBingHybrid,
            this.chkFahrenheit,
            this.chkCelsius});
            this.ribbonControl1.Location = new System.Drawing.Point(0, 0);
            this.ribbonControl1.MaxItemId = 45;
            this.ribbonControl1.Name = "ribbonControl1";
            this.ribbonControl1.Pages.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPage[] {
            this.viewRibbonPage1});
            this.ribbonControl1.Size = new System.Drawing.Size(1053, 142);
            // 
            // chkBingRoad
            // 
            this.chkBingRoad.Caption = "Road";
            this.chkBingRoad.Glyph = ((System.Drawing.Image)(resources.GetObject("chkBingRoad.Glyph")));
            this.chkBingRoad.GroupIndex = 1;
            this.chkBingRoad.Id = 40;
            this.chkBingRoad.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("chkBingRoad.LargeGlyph")));
            this.chkBingRoad.Name = "chkBingRoad";
            this.chkBingRoad.Tag = 0;
            this.chkBingRoad.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkBingRoad_CheckedChanged);
            // 
            // chkBingArea
            // 
            this.chkBingArea.Caption = "Area";
            this.chkBingArea.Checked = true;
            this.chkBingArea.Glyph = ((System.Drawing.Image)(resources.GetObject("chkBingArea.Glyph")));
            this.chkBingArea.GroupIndex = 1;
            this.chkBingArea.Id = 41;
            this.chkBingArea.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("chkBingArea.LargeGlyph")));
            this.chkBingArea.Name = "chkBingArea";
            this.chkBingArea.Tag = 1;
            this.chkBingArea.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkBingRoad_CheckedChanged);
            // 
            // chkBingHybrid
            // 
            this.chkBingHybrid.Caption = "Hybrid";
            this.chkBingHybrid.Glyph = ((System.Drawing.Image)(resources.GetObject("chkBingHybrid.Glyph")));
            this.chkBingHybrid.GroupIndex = 1;
            this.chkBingHybrid.Id = 42;
            this.chkBingHybrid.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("chkBingHybrid.LargeGlyph")));
            this.chkBingHybrid.Name = "chkBingHybrid";
            this.chkBingHybrid.Tag = 2;
            this.chkBingHybrid.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkBingRoad_CheckedChanged);
            // 
            // chkFahrenheit
            // 
            this.chkFahrenheit.Caption = "Fahrenheit";
            this.chkFahrenheit.Glyph = ((System.Drawing.Image)(resources.GetObject("chkFahrenheit.Glyph")));
            this.chkFahrenheit.GroupIndex = 1;
            this.chkFahrenheit.Id = 43;
            this.chkFahrenheit.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("chkFahrenheit.LargeGlyph")));
            this.chkFahrenheit.Name = "chkFahrenheit";
            this.chkFahrenheit.Tag = 0;
            this.chkFahrenheit.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkCelsius_CheckedChanged);
            // 
            // chkCelsius
            // 
            this.chkCelsius.Caption = "Celsius";
            this.chkCelsius.Checked = true;
            this.chkCelsius.Glyph = ((System.Drawing.Image)(resources.GetObject("chkCelsius.Glyph")));
            this.chkCelsius.GroupIndex = 1;
            this.chkCelsius.Id = 44;
            this.chkCelsius.LargeGlyph = ((System.Drawing.Image)(resources.GetObject("chkCelsius.LargeGlyph")));
            this.chkCelsius.Name = "chkCelsius";
            this.chkCelsius.Tag = 1;
            this.chkCelsius.CheckedChanged += new DevExpress.XtraBars.ItemClickEventHandler(this.chkCelsius_CheckedChanged);
            // 
            // viewRibbonPage1
            // 
            this.viewRibbonPage1.Groups.AddRange(new DevExpress.XtraBars.Ribbon.RibbonPageGroup[] {
            this.activeViewRibbonPageGroup1,
            this.timeScaleRibbonPageGroup1});
            this.viewRibbonPage1.Name = "viewRibbonPage1";
            // 
            // activeViewRibbonPageGroup1
            // 
            this.activeViewRibbonPageGroup1.AllowTextClipping = false;
            this.activeViewRibbonPageGroup1.ItemLinks.Add(this.chkBingRoad);
            this.activeViewRibbonPageGroup1.ItemLinks.Add(this.chkBingArea);
            this.activeViewRibbonPageGroup1.ItemLinks.Add(this.chkBingHybrid);
            this.activeViewRibbonPageGroup1.Name = "activeViewRibbonPageGroup1";
            this.activeViewRibbonPageGroup1.Text = "BingMap Kind";
            // 
            // timeScaleRibbonPageGroup1
            // 
            this.timeScaleRibbonPageGroup1.AllowTextClipping = false;
            this.timeScaleRibbonPageGroup1.ItemLinks.Add(this.chkFahrenheit);
            this.timeScaleRibbonPageGroup1.ItemLinks.Add(this.chkCelsius);
            this.timeScaleRibbonPageGroup1.Name = "timeScaleRibbonPageGroup1";
            this.timeScaleRibbonPageGroup1.Text = "TemperatureUnit";
            // 
            // panelControl1
            // 
            this.panelControl1.Appearance.BackColor = System.Drawing.Color.Black;
            this.panelControl1.Appearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(71)))), ((int)(((byte)(80)))));
            this.panelControl1.Appearance.Options.UseBackColor = true;
            this.panelControl1.Appearance.Options.UseBorderColor = true;
            this.panelControl1.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.Simple;
            this.panelControl1.Controls.Add(this.panelControl2);
            this.panelControl1.Controls.Add(this.chartControl1);
            this.panelControl1.Location = new System.Drawing.Point(21, 21);
            this.panelControl1.LookAndFeel.Style = DevExpress.LookAndFeel.LookAndFeelStyle.Flat;
            this.panelControl1.LookAndFeel.UseDefaultLookAndFeel = false;
            this.panelControl1.Name = "panelControl1";
            this.panelControl1.Padding = new System.Windows.Forms.Padding(13, 13, 23, 14);
            this.panelControl1.Size = new System.Drawing.Size(320, 267);
            this.panelControl1.TabIndex = 17;
            // 
            // panelControl2
            // 
            this.panelControl2.Appearance.BackColor = System.Drawing.Color.Black;
            this.panelControl2.Appearance.Options.UseBackColor = true;
            this.panelControl2.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            this.panelControl2.Controls.Add(this.lbTemperature);
            this.panelControl2.Controls.Add(this.peWeatherIcon);
            this.panelControl2.Controls.Add(this.lbCity);
            this.panelControl2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panelControl2.Location = new System.Drawing.Point(15, 15);
            this.panelControl2.LookAndFeel.UseDefaultLookAndFeel = false;
            this.panelControl2.Name = "panelControl2";
            this.panelControl2.Size = new System.Drawing.Size(280, 57);
            this.panelControl2.TabIndex = 15;
            // 
            // lbTemperature
            // 
            this.lbTemperature.Appearance.Font = new System.Drawing.Font("Tahoma", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
            this.lbTemperature.Appearance.ForeColor = System.Drawing.Color.White;
            this.lbTemperature.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
            this.lbTemperature.Location = new System.Drawing.Point(53, 26);
            this.lbTemperature.Name = "lbTemperature";
            this.lbTemperature.Size = new System.Drawing.Size(182, 34);
            this.lbTemperature.TabIndex = 2;
            // 
            // peWeatherIcon
            // 
            this.peWeatherIcon.Location = new System.Drawing.Point(0, 19);
            this.peWeatherIcon.Name = "peWeatherIcon";
            this.peWeatherIcon.Properties.Appearance.BackColor = System.Drawing.Color.Transparent;
            this.peWeatherIcon.Properties.Appearance.Options.UseBackColor = true;
            this.peWeatherIcon.Properties.BorderStyle = DevExpress.XtraEditors.Controls.BorderStyles.NoBorder;
            this.peWeatherIcon.Properties.NullText = " ";
            this.peWeatherIcon.Properties.PictureAlignment = System.Drawing.ContentAlignment.TopLeft;
            this.peWeatherIcon.Properties.ShowMenu = false;
            this.peWeatherIcon.Size = new System.Drawing.Size(49, 41);
            this.peWeatherIcon.TabIndex = 1;
            // 
            // lbCity
            // 
            this.lbCity.Appearance.Font = new System.Drawing.Font("Tahoma", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.lbCity.Appearance.ForeColor = System.Drawing.Color.White;
            this.lbCity.AutoSizeMode = DevExpress.XtraEditors.LabelAutoSizeMode.None;
            this.lbCity.Location = new System.Drawing.Point(14, 0);
            this.lbCity.Name = "lbCity";
            this.lbCity.Size = new System.Drawing.Size(249, 21);
            this.lbCity.TabIndex = 0;
            // 
            // chartControl1
            // 
            this.chartControl1.BackColor = System.Drawing.Color.Black;
            this.chartControl1.BorderOptions.Visibility = Utils.DefaultBoolean.False;
            xyDiagram1.AxisX.Color = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(173)))), ((int)(((byte)(173)))));
            xyDiagram1.AxisX.DateTimeScaleOptions.AutoGrid = false;
            xyDiagram1.AxisX.DateTimeScaleOptions.GridAlignment = DevExpress.XtraCharts.DateTimeGridAlignment.Day;
            xyDiagram1.AxisX.DateTimeScaleOptions.MeasureUnit = DevExpress.XtraCharts.DateTimeMeasureUnit.Hour;
            xyDiagram1.AxisX.GridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            xyDiagram1.AxisX.GridLines.MinorColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
            xyDiagram1.AxisX.GridLines.MinorVisible = true;
            xyDiagram1.AxisX.GridLines.Visible = true;
            xyDiagram1.AxisX.Interlaced = true;
            xyDiagram1.AxisX.InterlacedColor = System.Drawing.Color.Transparent;
            xyDiagram1.AxisX.Label.TextPattern = "{A:dd.MM}";
            xyDiagram1.AxisX.Label.ResolveOverlappingOptions.AllowHide = false;
            xyDiagram1.AxisX.Label.ResolveOverlappingOptions.AllowRotate = false;
            xyDiagram1.AxisX.Label.ResolveOverlappingOptions.AllowStagger = false;
            xyDiagram1.AxisX.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(173)))), ((int)(((byte)(173)))));
            xyDiagram1.AxisX.Tickmarks.MinorVisible = false;
            xyDiagram1.AxisX.Tickmarks.Visible = false;
            xyDiagram1.AxisX.VisibleInPanesSerializable = "-1";
            xyDiagram1.AxisY.Color = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(195)))), ((int)(((byte)(195)))));
            xyDiagram1.AxisY.GridLines.Color = System.Drawing.Color.FromArgb(((int)(((byte)(96)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))), ((int)(((byte)(160)))));
            xyDiagram1.AxisY.GridLines.MinorColor = System.Drawing.Color.FromArgb(((int)(((byte)(21)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(128)))));
            xyDiagram1.AxisY.InterlacedColor = System.Drawing.Color.Transparent;
            xyDiagram1.AxisY.Label.ResolveOverlappingOptions.AllowRotate = false;
            xyDiagram1.AxisY.Label.ResolveOverlappingOptions.AllowStagger = false;
            xyDiagram1.AxisY.Label.TextColor = System.Drawing.Color.FromArgb(((int)(((byte)(173)))), ((int)(((byte)(173)))), ((int)(((byte)(173)))));
            xyDiagram1.AxisY.Tickmarks.MinorVisible = false;
            xyDiagram1.AxisY.Tickmarks.Visible = false;
            xyDiagram1.AxisY.VisibleInPanesSerializable = "-1";
            xyDiagram1.AxisY.WholeRange.AlwaysShowZeroLevel = false;
            xyDiagram1.DefaultPane.BackColor = System.Drawing.Color.Transparent;
            xyDiagram1.Margins.Bottom = 2;
            xyDiagram1.Margins.Left = 0;
            xyDiagram1.Margins.Right = 0;
            xyDiagram1.Margins.Top = 2;
            this.chartControl1.Diagram = xyDiagram1;
            this.chartControl1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.chartControl1.Legend.Visibility = Utils.DefaultBoolean.False;
            this.chartControl1.Location = new System.Drawing.Point(15, 72);
            this.chartControl1.Margin = new System.Windows.Forms.Padding(0);
            this.chartControl1.Name = "chartControl1";
            series1.ArgumentDataMember = "CurrentDateTime";
            series1.ArgumentScaleType = DevExpress.XtraCharts.ScaleType.DateTime;
            series1.CrosshairLabelPattern = "{A:g}: {V}";
            series1.Name = "Series 1";
            series1.ValueDataMembersSerializable = "Weather.CelsiusTemperature";
            series1.View = lineSeriesView1;
            this.chartControl1.SeriesSerializable = new DevExpress.XtraCharts.Series[] {
        series1};
            this.chartControl1.SeriesTemplate.View = lineSeriesView2;
            this.chartControl1.Size = new System.Drawing.Size(280, 179);
            this.chartControl1.TabIndex = 14;
            // 
            // MapsModule
            // 
            this.Appearance.Options.UseFont = true;
            this.Controls.Add(this.panelControl1);
            this.Controls.Add(this.mapContainerPanel);
            this.Controls.Add(this.ribbonControl1);
            this.Name = "MapsModule";
            this.Size = new System.Drawing.Size(1053, 739);
            ((System.ComponentModel.ISupportInitialize)(this.mapContainerPanel)).EndInit();
            this.mapContainerPanel.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
            this.layoutControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.mapControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlGroup1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ribbonControl1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit();
            this.panelControl1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.panelControl2)).EndInit();
            this.panelControl2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.peWeatherIcon.Properties)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(xyDiagram1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(lineSeriesView1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(series1)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(lineSeriesView2)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.chartControl1)).EndInit();
            this.ResumeLayout(false);

        }
        public SCMap AddLayerVectorData(object dataSource, LayerVectorDataOptions options = null)
        {
            options ??= new LayerVectorDataOptions();

            DataSourceAdapterBase adapter;

            if (!string.IsNullOrWhiteSpace(options.BubbleField))
            {
                var bubbleAdapter = new BubbleChartDataAdapter()
                {
                    BubbleItemDataMember = options.BubbleField
                };
                adapter = bubbleAdapter;

                //Mappings
                bubbleAdapter.Mappings.ImageIndex  = options.ImageIndexField;
                bubbleAdapter.Mappings.Latitude    = options.LatitudeField;
                bubbleAdapter.Mappings.Longitude   = options.LongitudeField;
                bubbleAdapter.Mappings.Text        = options.TextField;
                bubbleAdapter.Mappings.Type        = options.MapItemTypeField;
                bubbleAdapter.Mappings.XCoordinate = options.XCoordinateField;
                bubbleAdapter.Mappings.YCoordinate = options.YCoordinateField;
                bubbleAdapter.Mappings.Value       = options.ValueField;
            }
            else if (!string.IsNullOrWhiteSpace(options.PieField))
            {
                var pieAdapter = new PieChartDataAdapter()
                {
                    PieItemDataMember = options.PieField
                };
                adapter = pieAdapter;

                //Mappings
                pieAdapter.Mappings.ImageIndex  = options.ImageIndexField;
                pieAdapter.Mappings.Latitude    = options.LatitudeField;
                pieAdapter.Mappings.Longitude   = options.LongitudeField;
                pieAdapter.Mappings.Text        = options.TextField;
                pieAdapter.Mappings.Type        = options.MapItemTypeField;
                pieAdapter.Mappings.XCoordinate = options.XCoordinateField;
                pieAdapter.Mappings.YCoordinate = options.YCoordinateField;
                pieAdapter.Mappings.Value       = options.ValueField;
            }
            else
            {
                var listAdapter = new ListSourceDataAdapter()
                {
                    DefaultMapItemType = (DevExpress.XtraMap.MapItemType)options.DefaultMapItemType
                };
                adapter = listAdapter;

                //Mappings
                listAdapter.Mappings.ImageIndex  = options.ImageIndexField;
                listAdapter.Mappings.Latitude    = options.LatitudeField;
                listAdapter.Mappings.Longitude   = options.LongitudeField;
                listAdapter.Mappings.Text        = options.TextField;
                listAdapter.Mappings.Type        = options.MapItemTypeField;
                listAdapter.Mappings.XCoordinate = options.XCoordinateField;
                listAdapter.Mappings.YCoordinate = options.YCoordinateField;
            }

            //Property mappings
            var defaultItemColor = Utils.ColorFromString(options.DefaultItemColor);

            if (defaultItemColor != Color.Empty || !string.IsNullOrWhiteSpace(options.ItemColorField))
            {
                var mapItem = new MapItemFillMapping();
                if (defaultItemColor != Color.Empty)
                {
                    mapItem.DefaultValue = defaultItemColor;
                }
                if (!string.IsNullOrWhiteSpace(options.ItemColorField))
                {
                    mapItem.Member = options.ItemColorField;
                }

                adapter.PropertyMappings.Add(mapItem);
            }

            var defaultStrokeColor = Utils.ColorFromString(options.DefaultStrokeColor);

            if (defaultStrokeColor != Color.Empty || !string.IsNullOrWhiteSpace(options.StrokeColorField))
            {
                var mapItem = new MapItemStrokeMapping();
                if (defaultStrokeColor != Color.Empty)
                {
                    mapItem.DefaultValue = defaultStrokeColor;
                }
                if (!string.IsNullOrWhiteSpace(options.StrokeColorField))
                {
                    mapItem.Member = options.StrokeColorField;
                }

                adapter.PropertyMappings.Add(mapItem);
            }

            if (options.DefaultDotShapeKind.HasValue || !string.IsNullOrWhiteSpace(options.DotShapeKindField))
            {
                var mapItem = new MapDotShapeKindMapping();
                if (options.DefaultDotShapeKind.HasValue)
                {
                    mapItem.DefaultValue = (DevExpress.XtraMap.MapDotShapeKind)options.DefaultDotShapeKind.Value;
                }
                if (!string.IsNullOrWhiteSpace(options.DotShapeKindField))
                {
                    mapItem.Member = options.DotShapeKindField;
                }

                adapter.PropertyMappings.Add(mapItem);
            }

            if (options.DefaultDotSize.HasValue || !string.IsNullOrWhiteSpace(options.DotSizeField))
            {
                var mapItem = new MapDotSizeMapping();
                if (options.DefaultDotSize.HasValue)
                {
                    mapItem.DefaultValue = options.DefaultDotSize.Value;
                }
                if (!string.IsNullOrWhiteSpace(options.DotSizeField))
                {
                    mapItem.Member = options.DotSizeField;
                }

                adapter.PropertyMappings.Add(mapItem);
            }

            if (options.DefaultEllipseHeight.HasValue || !string.IsNullOrWhiteSpace(options.EllipseHeightField))
            {
                var mapItem = new MapEllipseHeightMapping();
                if (options.DefaultEllipseHeight.HasValue)
                {
                    mapItem.DefaultValue = options.DefaultEllipseHeight.Value;
                }
                if (!string.IsNullOrWhiteSpace(options.EllipseHeightField))
                {
                    mapItem.Member = options.EllipseHeightField;
                }

                adapter.PropertyMappings.Add(mapItem);
            }

            if (options.DefaultEllipseWidth.HasValue || !string.IsNullOrWhiteSpace(options.EllipseWidthField))
            {
                var mapItem = new MapEllipseWidthMapping();
                if (options.DefaultEllipseWidth.HasValue)
                {
                    mapItem.DefaultValue = options.DefaultEllipseWidth.Value;
                }
                if (!string.IsNullOrWhiteSpace(options.EllipseWidthField))
                {
                    mapItem.Member = options.EllipseWidthField;
                }

                adapter.PropertyMappings.Add(mapItem);
            }

            if (options.DefaultRectangleHeight.HasValue || !string.IsNullOrWhiteSpace(options.RectangleHeightField))
            {
                var mapItem = new MapRectangleHeightMapping();
                if (options.DefaultRectangleHeight.HasValue)
                {
                    mapItem.DefaultValue = options.DefaultRectangleHeight.Value;
                }
                if (!string.IsNullOrWhiteSpace(options.RectangleHeightField))
                {
                    mapItem.Member = options.RectangleHeightField;
                }

                adapter.PropertyMappings.Add(mapItem);
            }

            if (options.DefaultRectangleWidth.HasValue || !string.IsNullOrWhiteSpace(options.RectangleWidthField))
            {
                var mapItem = new MapRectangleWidthMapping();
                if (options.DefaultRectangleWidth.HasValue)
                {
                    mapItem.DefaultValue = options.DefaultRectangleWidth.Value;
                }
                if (!string.IsNullOrWhiteSpace(options.RectangleWidthField))
                {
                    mapItem.Member = options.RectangleWidthField;
                }

                adapter.PropertyMappings.Add(mapItem);
            }

            //Attribute mappings
            if (options.Attributes != null)
            {
                foreach (string attribute in options.Attributes)
                {
                    adapter.AttributeMappings.Add(new MapItemAttributeMapping()
                    {
                        Member = attribute, Name = attribute
                    });
                }
            }

            if (dataSource != null)
            {
                adapter.DataSource = GetDataSource(dataSource, new DataSourceParameters());
            }

            var          map = Map;
            MapItemStyle itemStyle;

            if (!options.MiniMap)
            {
                var layer = new VectorItemsLayer()
                {
                    AllowEditItems     = false,
                    EnableHighlighting = false,
                    EnableSelection    = false
                };

                if (!string.IsNullOrWhiteSpace(options.ShapeTitlesPattern))
                {
                    layer.ShapeTitlesPattern    = options.ShapeTitlesPattern;
                    layer.ShapeTitlesVisibility = VisibilityMode.Visible;
                }

                if (!string.IsNullOrWhiteSpace(options.Name))
                {
                    layer.Name = options.Name;
                }
                if (options.ItemImageIndex.HasValue)
                {
                    layer.ItemImageIndex = options.ItemImageIndex.Value;
                }
                itemStyle = layer.ItemStyle;

                layer.Data = adapter;

                map.Layers.Add(layer);
                CurrentLayer = layer;
            }
            else
            {
                var layerMini = new MiniMapVectorItemsLayer();

                if (!string.IsNullOrWhiteSpace(options.Name))
                {
                    layerMini.Name = options.Name;
                }
                if (options.ItemImageIndex.HasValue)
                {
                    layerMini.ItemImageIndex = options.ItemImageIndex.Value;
                }
                itemStyle = layerMini.ItemStyle;

                layerMini.Data = adapter;

                if (map.MiniMap == null)
                {
                    throw new Exception("Mini map is not created.");
                }

                map.MiniMap.Layers.Add(layerMini);
                CurrentLayer = layerMini;
            }

            if (itemStyle != null)
            {
                var fillColor = Utils.ColorFromString(options.FillColor);
                if (fillColor != Color.Empty)
                {
                    itemStyle.Fill = fillColor;
                }

                var font = Utils.StringToFont(options.Font, out Color textColor);
                if (font != null)
                {
                    itemStyle.Font = font;
                }
                if (textColor != Color.Empty)
                {
                    itemStyle.TextColor = textColor;
                }

                var strokeColor = Utils.ColorFromString(options.StrokeColor);
                if (strokeColor != Color.Empty)
                {
                    itemStyle.Stroke = strokeColor;
                }
                if (options.StrokeWidth.HasValue)
                {
                    itemStyle.StrokeWidth = options.StrokeWidth.Value;
                }

                var textGlowColor = Utils.ColorFromString(options.TextGlowColor);
                if (textGlowColor != Color.Empty)
                {
                    itemStyle.TextGlowColor = textGlowColor;
                }
            }

            return(this);
        }