コード例 #1
0
        private void menuItem_InsertTXT_Click(object sender, EventArgs e)
        {
            frmAddTxtElement frmATE = new frmAddTxtElement(m_MapControl);

            frmATE.Show();
            axMapControl1.OnMouseDown += new IMapControlEvents2_Ax_OnMouseDownEventHandler(frmATE.MapControl_OnMouseDown);
        }
コード例 #2
0
        private void btn_DrawTxt_Click(object sender, EventArgs e)
        {
            frmAddTxtElement frmDT = new frmAddTxtElement(m_MapControl);

            frmDT.Show();
            axMapControl1.OnMouseDown += new IMapControlEvents2_Ax_OnMouseDownEventHandler(frmDT.MapControl_OnMouseDown);
            // axMapControl1.OnAfterDraw += new IMapControlEvents2_Ax_OnAfterDrawEventHandler(frmDT.MapControl_OnAfterDraw);
        }