Example #1
0
 private void tsbMapNewThing_Click(object sender, EventArgs e)
 {
     if (mapControl.extent != null)
     {
         this.maxX = mapControl.extent.maxX;
         this.maxY = mapControl.extent.maxY;
         this.minX = mapControl.extent.minX;
         this.minY = mapControl.extent.minY;
     }
     else
     {
         MessageBox.Show("请绘制选区");
         return;
     }
     //if (this.minX > 0 && this.minY > 0 && this.maxX > 0 && this.maxY > 0)
     {
         FrmNewThing frmNewThing = new FrmNewThing(
             this.minX,
             this.minY,
             this.maxX,
             this.maxY,
             this.mapType,
             dataGridViewWorks);
         if (frmNewThing.ShowDialog() == DialogResult.OK)
         {
             frmNewThing.Close();
             this.tabControl.SelectedTab = this.tabItemWork;
         }
     }
     //else MessageBox.Show("请绘制选区");
 }
Example #2
0
        private void tsbNewThing_Click(object sender, EventArgs e)
        {
            FrmNewThing frmNewThing = new FrmNewThing(
                this.minX,
                this.minY,
                this.maxX,
                this.maxY,
                this.mapType,
                dataGridViewWorks);

            frmNewThing.ShowDialog();
        }