Exemplo n.º 1
0
        private void btnInsertTop_Click(object sender, EventArgs e)
        {
            if (_InsertTopShield)
            {
                return;
            }
            try
            {
                _InsertTopShield = true;

                Globs.CancelCommand();

#if OLDER_THAN_2015
                _AcAp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("Plan2RaumnummernInsertTop2 ", true, false, false);
#else
                _AcAp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("Plan2RaumnummernInsertTop ", true, false, false);
#endif
            }
            catch (Exception ex)
            {
                _AcAp.Application.ShowAlertDialog(ex.Message);
            }
            finally
            {
                _InsertTopShield = false;
            }
        }
Exemplo n.º 2
0
        private void btnAbzFlaechenGrenzeLayerName_Click(object sender, EventArgs e)
        {
            if (_AbzFlaechenGrenzeLayerNameShield)
            {
                return;
            }
            try
            {
                _AbzFlaechenGrenzeLayerNameShield = true;

                Globs.CancelCommand();

                _AcAp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("Plan2RaumnummerSelAbzFgLayer ", true, false, false);
            }
            catch (Exception ex)
            {
                _AcAp.Application.ShowAlertDialog(ex.Message);
            }
            finally
            {
                _AbzFlaechenGrenzeLayerNameShield = false;
            }
        }
Exemplo n.º 3
0
        private void btnFlaBereinig_Click(object sender, EventArgs e)
        {
            if (_FlaBereinigShield)
            {
                return;
            }
            try
            {
                _FlaBereinigShield = true;

                Globs.CancelCommand();

                _AcAp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("Plan2FlaBereinig ", true, false, false);
            }
            catch (Exception ex)
            {
                _AcAp.Application.ShowAlertDialog(ex.Message);
            }
            finally
            {
                _FlaBereinigShield = false;
            }
        }
Exemplo n.º 4
0
        private void btnSelectBlock_Click(object sender, EventArgs e)
        {
            if (_SelectBlockShield)
            {
                return;
            }
            try
            {
                _SelectBlockShield = true;

                Globs.CancelCommand();

                _AcAp.Application.DocumentManager.MdiActiveDocument.SendStringToExecute("Plan2RaumnummerSelBlockAndAtt ", true, false, false);
            }
            catch (Exception ex)
            {
                _AcAp.Application.ShowAlertDialog(ex.Message);
            }
            finally
            {
                _SelectBlockShield = false;
            }
        }