コード例 #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);
     }
 }
コード例 #4
0
 //Fires the print method on the layoutcontrol
 private void _btnMap_Click(object sender, EventArgs e)
 {
     _layoutControl.AddElementWithMouse(_layoutControl.CreateMapElement());
 }