Пример #1
0
        private void LayoutForm_Load(object sender, EventArgs e)
        {
            LayoutElement mapElement = _layoutControl1.CreateMapElement();

            mapElement.Size = _layoutControl1.Size;
            this._layoutControl1.AddToLayout(mapElement);
        }
Пример #2
0
 // Fires the print method on the layoutcontrol
 private void BtnMapClick(object sender, EventArgs e)
 {
     if (_layoutControl.MapControl != null)
     {
         _layoutControl.AddElementWithMouse(_layoutControl.CreateMapElement());
     }
     else
     {
         MessageBox.Show(Parent, MessageStrings.LayoutInsertToolStrip_UnableToAddMapWithoutAssociatedMapControl, MessageStrings.LayoutInsertToolStrip_MissingMapControl, MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
Пример #3
0
 //Fires the print method on the layoutcontrol
 private void _btnMap_Click(object sender, EventArgs e)
 {
     if (_layoutControl.MapControl != null)
     {
         _layoutControl.AddElementWithMouse(_layoutControl.CreateMapElement());
     }
     else
     {
         MessageBox.Show(Parent, "Unable to add map without associated MapControl.", "Missing MapControl",
                         MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
 }
 //Fires the print method on the layoutcontrol
 private void _btnMap_Click(object sender, EventArgs e)
 {
     _layoutControl.AddElementWithMouse(_layoutControl.CreateMapElement());
 }